"Type information" when exporting or converting to CSV

Welcome Forums General PowerShell Q&A "Type information" when exporting or converting to CSV

Viewing 2 reply threads
  • Author
    Posts
    • #52361
      Participant
      Topics: 9
      Replies: 62
      Points: 6
      Rank: Member

      By default, Export-CSV and ConvertTo-CSV prepend type information to the result. "Information" in this case meaning just the name.

      Is this useful for anything? Does anyone use it? Does anyone intentionally not use -NoTypeInformation ?

    • #52365
      Member
      Topics: 9
      Replies: 2322
      Points: 0
      Rank: Member

      When you import a CSV with type information, it gets injected into PSTypeNames. That's about it. I don't use it.

    • #52372
      Keymaster
      Topics: 13
      Replies: 4872
      Points: 1,844
      Helping HandTeam Member
      Rank: Community Hero

      What Dave said. It's mainly used for deserialization, to provide a more consistent pipeline behavior. There's some ETS tie-in as well, although I don't think I've ever seen an example of that being actually practical or beneficial.

Viewing 2 reply threads
  • The topic ‘"Type information" when exporting or converting to CSV’ is closed to new replies.