Solved

script to inventory OS on machines

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

737 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