2025-04-27 07:49:33 -04:00

10 lines
287 B
Plaintext

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