Overlapping Boundries - Clients with wrong site code need to be re-assigned
We have two seperate SCCM sites and ended up with an overlapping boundry. I have corrected the boundry problem, but I still have clients that are pointed to the incorrect site. If I reinstall the client, they will point to the correct site. Is there a way I can remotely trigger existing clients to rediscover thier site code rater than a reinstall? If I am on the client directly I can manually discover and it works, but I need to automate this on quite a few machines.
October 8th, 2010 7:07pm

Hi, You can use a GPO to reassign the clients or a script like this: ----------------------------------------------------------------------- 'replace with your Site Code sSiteCode = "NewSiteCodeHere" sMachine = "." set oCCMNamespace = GetObject("winmgmts://" & sMachine & "/root/ccm") Set oInstance = oCCMNamespace.Get("SMS_Client") set oParams = oInstance.Methods_("SetAssignedSite").inParameters.SpawnInstance_() oParams.sSiteCode = sSiteCode oCCMNamespace.ExecMethod "SMS_Client", "SetAssignedSite", oParamsKent Agerlund | http://scug.dk/ | The Danish community for System Center products
Free Windows Admin Tool Kit Click here and download it now
October 8th, 2010 7:45pm

My suggestion is to use the script kent posted and NOT a GPO. The GPO method tattoo's the registry and it's a pain to re-assign the clients again later if you do that. Just add the script to a software dist package and send it out. John Marcum | http://myitforum.com/cs2/blogs/jmarcum |
October 9th, 2010 2:25am

Hi, 1. You could use the client assignment ADM file to accomplish that, provided all clients can use AD/GPO. See: http://technet.microsoft.com/en-us/library/bb680370.aspx 2. Using the script that Knet posted.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 11th, 2010 5:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics