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.