Jump to content

Recommended Posts


Posted (edited)

Here is a VBS script that will give the version and name of the OS on a computer

Save as Installed_Os.VBS

strComputer = "."

Set objWMIService = GetObject("winmgmts:" _

& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colOperatingSystems = objWMIService.ExecQuery _

("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems

Msgbox objOperatingSystem.Caption & " " & _

objOperatingSystem.Version, 0 + 32,"Window Version"

Next

Edited by gunsmokingman
Posted

Thanks, for all the information but I need registry keys or file versions to determine the exact Windows version.

Novell ZENworks cannot get the results of winver or vbs scripts, so far as i know.

...

Posted (edited)

If you're running XP run regedit and do a search for "Home Edition" or "Professional" depending on your version and see wat comes up, tell someone to look in their version see if they have the same key, confirm it on about 5 machines, then assume it...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Installations\x86_Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries_6595b64144ccf1df_6.0.0.0_x-ww_ff9986d7\Codebases\OS

Try that....

Edited by Nakatomi2010

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...