![]() ObjSWbemInst.Flags = enableDisableClientAgent ‘ Set the client agent by setting the Flags value to 0 or 1 using the enableDisableClientAgent variable. Wscript.Echo objSWbemInst.Flags & ” (0 = Disabled, 1 = Enabled)” Wscript.Echo objSWbemInst.ClientComponentName Wscript.Echo “Properties – Before Change” ![]() ‘ Display client agent settings before change. Set objSWbemInst = swbemServices.Get(“SMS_SCI_ClientComp.Filetype=1,Itemtype=’Client Component’,Sitecode='” & siteCode & “‘,ItemName=’Remote Control'”,, swbemContext) SwbemServices.ExecMethod “SMS_SiteControlFile.Filetype=1,Sitecode=””” & siteCode & “”””, “Refresh”,, , swbemContext ‘ Load site control file and get client component section. ![]() Sub EnableDisableRemoteControlClientAgent(swbemServices, _ You can probably use the first part of the BB script in Configuration Item to detect Remote tool agent component is enabled or not.ĭON’T use full script that is for enabling the remote tool
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |