Export much data to csv or xml

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 3 months ago.

  • Author
    Posts
  • #5173

    by Zushakon at 2012-10-06 12:55:26

    Hi,

    I have a script that scans some computers in the network and takes some information from each one.

    Now I export whole data to excel, each row is one computer and in columns i have diffrent kind of information.

    But I would like to change the script to export whole data to csv or xml so I can easily put this in database.

    Now the question is how.. I looked around on exporting to csv. Meaning after scanning one computer put the whole information about it in an array and then in the end put all arrays in one array and export this to csv, but here comes the question how to do it ?

    Anyone have to ideas on how to do it ?

    by JeffH at 2012-10-09 06:39:09

    As long as your script is writing an object to the pipeline, all you need to so is pipe it to Export-CSV. But you need to write the same object for all computers.

You must be logged in to reply to this topic.