Remote Site Code change
Does anyone know of a trick to get the SCCM Client Center (by Roger Zander) to change the site code on a remote system? I change the site and click the blue save floppy disk icon, and no errors but it doesn't work. I found a VBScript example that does it on the local system but can't get that to work unless I use PsExec. Ideally I'd like to change the site code for amultiple systems in a list, rather than one at a time. Any suggestions?
November 29th, 2010 6:41pm

Is the site code for a site in the same hierarchy or a new one? If it's in a new hierarchy, chaning the site code of a client will fail because the client des not have the trusted root key for the new hierarchy: http://blogs.technet.com/b/configmgrteam/archive/2009/04/09/reassigning-a-configuration-manager-client-across-hierarchies.aspx. If it's the same hierarchy, you need to look at the client log files to figure out what is going wrong, specifically LocationServices.log. For a script to change the site code en masse, you should be able to use the one posted in the last entry in this thread: http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/90272410-19d8-4bb7-8ad1-fc9ff53aff72.Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2010 7:18pm

Hi, You can use the one from the Right click tools. I have used it several times when reassigning clients - http://myitforum.com/cs2/blogs/rhouchins/archive/2008/04/09/sccm-right-click-tools.aspxKent Agerlund | My blogs: http://blog.coretech.dk/author/kea/ and http://scug.dk/ | Twitter @Agerlund | Linkedin: /kentagerlund
November 30th, 2010 12:31am

Or how about a one liner using Wmic.exe? :- Wmic.exe /node:@Machines.txt /namespace:\\root\ccm path sms_client CALL SetAssignedSite "NEW" /NOINTERACTIVE Replace NEW with whatever site code you desire. Machines.txt is a list of machine names.Regards, Tom Watson, E-Mail: Tom_...@... Blog: http://myitforum.com/cs2/blogs/tom_watson
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2010 3:32pm

The site hierarchy might be related, I am reassigning clients to a different hierarchy and different forest with a trust. But if I use a VBScript or WMIC it works, it only seems to fail when using SCCM Client Center.
December 11th, 2010 10:38am

The site hierarchy might be related, I am reassigning clients to a different hierarchy and different forest with a trust. But if I use a VBScript or WMIC it works, it only seems to fail when using SCCM Client Center.
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2010 10:38am

The site hierarchy might be related, I am reassigning clients to a different hierarchy and different forest with a trust. But if I use a VBScript or WMIC it works, it only seems to fail when using SCCM Client Center.
December 11th, 2010 10:38am

This seems to work every time, thanks! This is going to start happening a lot as we are getting ready to migrate and decommission one forest to another, soon I think I will need to reassign clients with a computer startup script, unless there's a way to reassign clients with just a GPO, no script?
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2010 10:39am

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

Other recent topics Other recent topics