PS 2 - get wmiobject - multiple computers -append csv

Welcome Forums General PowerShell Q&A PS 2 - get wmiobject - multiple computers -append csv

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years, 7 months ago.

  • Author
    Posts
  • #5610

    Member
    Topics: 1562
    Replies: 0
    Points: 0
    Rank: Member

    by Symbiot at 2013-03-01 04:34:50

    hi

    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".

The topic ‘PS 2 - get wmiobject - multiple computers -append csv’ is closed to new replies.