CSV file show System.Object[]

Welcome Forums General PowerShell Q&A CSV file show System.Object[]

Viewing 2 reply threads
  • Author
    Posts
    • #274194
      Participant
      Topics: 1
      Replies: 1
      Points: 17
      Rank: Member

      I am getting proper output in ISE but the CSV is only displaying System.Object[], usually I am able to use -join to address this but do not know what I am getting wrong this time.

      • This topic was modified 2 months ago by cyncate18.
      • This topic was modified 2 months ago by kvprasoon. Reason: Code formatting https://powershell.org/forums/topic/guide-to-posting-code-2/
    • #274212
      Participant
      Topics: 9
      Replies: 707
      Points: 2,848
      Helping Hand
      Rank: Community Hero

      You need to use select -ExpandProperty LocalPath or reference that property in ($USERS.localpath -join , )

      Also, you are doing some older techniques that can be slow an unnecessary. You might be aware but you are collecting several things you aren’t outputting.

      • #275793
        Participant
        Topics: 1
        Replies: 1
        Points: 17
        Rank: Member

        I am using a modified script that I have been using for years to inventory systems.  I got your changes to work, thanks for the assist.

    • #274257
      Senior Moderator
      Topics: 9
      Replies: 1449
      Points: 5,429
      Helping Hand
      Rank: Community MVP

      Does the entire CSV shows System.Object[] or only value of a specific column ?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.