Different OS Types

  • Thread starter Thread starter Sara Lathi
  • Start date Start date
S

Sara Lathi

If you do SRVINFO there is no consistency between how the
different products display system information. Is there
an easy way to tell if the system is Win2K Server,
advanced server, Win2k professional, Win XP etc..

Thanks
Sara
 
This VBScript may help

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
Wscript.Echo objOperatingSystem.Caption & " " &
objOperatingSystem.Version
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top