Solved

script to inventory OS on machines

Posted on 2013-11-05
5
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 96

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

696 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