Solved

script to inventory OS on machines

Posted on 2013-11-05
5
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle VM ware 7 43
Samsung Smart View subtitles don't work 1 76
Need some help with powershell script 5 36
Pervasive SQL Error 4 24
This article will show, step by step, how to integrate R code into a R Sweave document
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

895 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

15 Experts available now in Live!

Get 1:1 Help Now