SCCM Site code problems
We built up a fresh install of SCCM 2007 R2 SP2. Everything looks pretty clean, and we turned on auto discovery yesterday. The console is telling me that clients are pointing to our new site code, but if you look at one of the clients, it is
telling me that it is pointing to the old SCCM server. I can go into the client and tell it to discover the new site, and it works fine, but how do I do this automatically? I am assuming that I could push the client to all machines, but I would
rather just change the site code if it will have the same affect in the end. Also is there a way to test that the client will be auto installed on any new computers added to the domain other than adding one to the domain and testing?
Thanks,
Charles Blum
May 18th, 2010 5:24pm
Hi Charles,
You can solve this:
1) By reinstalling the client
2) By running a script on the client to force the reassignment process
3) Use a GPO to reassign the client
VB Script:
'replace with your Site Code
sSiteCode = "EnternewSiteCode"
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", oParams
Kent Agerlund | http://scug.dk/members/Agerlund/default.aspx | The Danish community for System Center products
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2010 5:46pm
enter my site code
Where do you want to enter that?
EDIT: well, that's the "beauty" of double postings ... See
http://social.technet.microsoft.com/Forums/en-US/configmgrgeneral/thread/5a2800eb-0677-4c5c-8a58-ba1c99474ccb. Please avoid them in the future.
September 22nd, 2010 7:40pm