Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
287 B

on error resume next
set s = GetObject("winmgmts:root\default")
set cimomid = s.Get("__cimomidentification=@")
if err <> 0 then
WScript.Echo ErrNumber, Err.Source, Err.Description
else
WScript.Echo cimomid.path_.displayname
WScript.Echo cimomid.versionusedtocreatedb
end if