I've notice my SCCM clients not responing to my main server. So I started looking and notice the following in our login script. I'm not a expert in scripting but please explain to me what will the following do to my SCCM clients
==================
Sub SMSSite()
Dim smsClient, inParam, result
If Site <> "DurbanPlessey" OR Site <> "Killarney" Then "This will only exclude these sites"
Set smsClient = GetObject("winmgmts://127.0.0.1/root/ccm:SMS_Client")
Set inParam = smsClient.Methods_.Item("SetAssignedSite").inParameters.SpawnInstance_()
inParam.sSiteCode = "C00"
Set result = smsClient.ExecMethod_("SetAssignedSite", inParam)
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi All,
I've notice my SCCM clients not responing to my main server. So I started looking and notice the following in our login script. I'm not a expert in scripting but please explain to me what will the following do to my SCCM clients
==================
Sub SMSSite()
Dim smsClient, inParam, result
If Site <> "DurbanPlessey" OR Site <> "Killarney" Then "This will only exclude these sites"
Set smsClient = GetObject("winmgmts://127.0.0.1/root/ccm:SMS_Client")
Set inParam = smsClient.Methods_.Item("SetAssignedSite").inParameters.SpawnInstance_()
inParam.sSiteCode = "C00"
Set result = smsClient.ExecMethod_("SetAssignedSite", inParam)
End If
End Sub
==================
Advice will really be appreciated.
Thank you
Jakes
Share this post
Link to post
Share on other sites