Solved

script to inventory OS on machines

Posted on 2013-11-05
5
222 Views
Last Modified: 2013-11-11
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?
0
Comment
Question by:WellingtonIS
  • 4
5 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 39625579
You could put spiceworks on to inventory the entire network or Query AD for a list of OSs on the workstations.
0
 

Author Comment

by:WellingtonIS
ID: 39625583
No spiceworks too busy but thanks for that suggestion.
0
 

Author Comment

by:WellingtonIS
ID: 39625621
Trying Powershell

Get-ADComputer "OU=General_use_PC,OU=PCS,OU=Wel_Computers,OU=Wellington,OU=Acute Facilities,DC=Corp,DC=UHSINC,DC=Biz -Filter {OperatingSystem -NotLike "*server*"} -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack -Wrap -Auto

Now working either...
0
 

Accepted Solution

by:
WellingtonIS earned 0 total points
ID: 39627328
0
 

Author Closing Comment

by:WellingtonIS
ID: 39638264
Found this and it did the trick
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now