| |
takeda kozo
Posts: 83
Score: 0
Joined: 11/9/2005
Status: offline
|
Currently I am retrieving the SMS Client Version and SMS Site Code from registry keys I would like to change the script, so that these values are being retrieved from the SMS object. I've found the code for retrieving the SMS Site Code, but can someone help me with the client version ? (???????????????) '+++++++++++++++++++++++++ strSMSnamespace = "root/ccm" Machine = "REMOTE_PC_NAME" strAdminUser = "Administrator" strAdminPass = "Did_you_really_think_I_would_tell_you" Set oWMIService = oWbemLocator.ConnectServer _ (Machine, strSMSnamespace, strAdminUser, strAdminPass) Set oSMSclient = oWMIService.Get("SMS_Client") Set result = oSMSClient.ExecMethod_("GetAssignedSite") MsgBox "Client is currently assigned to site " & result.sSiteCode MsgBox "Client is running SMS Client version " & ??????????????? '+++++++++++++++++++++++++ (yes, this is from a HTA, so don't go dissin' my MsgBox's ;)
|
|