PS 2 - get wmiobject - multiple computers -append csv
by Symbiot at 2013-03-01 04:34:50
I need to run a small script to get some wmi info from a bunch of computers... it must run once on each single computer.
get-wmiobject win32_computersystem | select-object Manufacturer, Model | export-csv \\fileserver\mrt$\models.csv -append
I did the above on my w8 machine... all is well.. but w7 machines are running ps2...
soooo.. how can I do the above script within ps2?
by mjolinor at 2013-03-01 05:36:55
Couple of options:
1. Have each machine write it's own .csv file, using it's computername in the filename. Then use another script on the back end to gather them up and consolidate them into a single .csv file. This will also eliminate file contention problems from multiple machines trying to update a common .csv file at the same time.
2. Get those W7 machines upgraded to V3.
Personally, I'd go with "All of the above".
You must be logged in to reply to this topic.