
Chapter 8: Understanding WMI Classes 163
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objLocator.ConnectServer(strComputer, _
wmiNS,
strUsr, strPWD, strLocl, strAuth, iFlag)
Set objItem = objWMIService.get(wmiQuery)
errRTN = objItem.GetCallerAccessRights(intRights)
If errRTN=0then
WScript.Echo "Calling users rights: " & intRights
Else
WScript.echo "error occurred. It was: " & errRTN
End if
Quick Check
Q: When using the __CIMOMIdentification class to retrieve information about the ver-
sion of WMI, what does __CIMOMIdentification=@ mean?
A: When using the __CIMOMIdentification class to retrieve information ...