jimking wrote:
Tony,I would like to ask you if there is a code that shows info about the windows installed for example:
"Windows 7 Ultimate 32-bit version xxxx service pack 1"
Obviously there is existing code to this...
This is in JS
Code:
var Computer = "."; //set to any computer you want to retrieve info "." for local computer
var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + Computer + "\root\cimv2");
var os = new Enumerator(wmi.ExecQuery("Select * from Win32_OperatingSystem"'")).item();
print(os.Caption); //do something
here is some more detain on additional properties
http://msdn.microsoft.com/en-us/library ... 85%29.aspx