Change sccm configmgr client site code

Here is simple VB script to change sitecode of SCCM clients assigned to it.you can create a program with command line wscript script-Name.vbs and advertise onto machines to change it at one go.On Error Resume Nextset oSMSClient = CreateObject ("Microsoft.SMS.Client")if Err.Number

 
 
 
 
 
(8)
2,436 times
Add to favorites
System Center
12/1/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • After running scipt?
    1 Posts | Last post May 15, 2013
    • After running this script on a client ver 2012 sp1. when opening the Configuration Manager properties. Under the action tab I was only seeing Machine Policy Retrieval & Evaluation Cycle and User Policy Retrieval & Evaluation Cycle. as an option. Was wondering how to get all of the options? Do you have to wait awhile or what? We have 2 environments. A Production environment using a CAS and 2 primary sites. Site Codes CAS,PW1 and PE1 then we have our QA Environment Site Code PDQ just a primary Site. we want to be able to switch the clients from the production to the qa back and forth for testing. IDEAS? instead of uninstalling and reinstalling the client? the script does change the site code btw. Thanks Dan. :-)