script to inventory OS on machines
Posted on 2013-11-05
With XP end of life approaching soon I'm in need of a way to find out what machine has XP and what machine does not do I can reinstall or replace the OS. I only need the OS type and machine name. I tried:
Set /p var= enter the computer file:
wmic /node:%var% os get CSName, Version, Caption> "C:\list.csv
but I'm getting RPC errors. Is there a better way?