Change sccm configmgr client site code

Here is simple VB script to change sitecode of SCCM clients assigned to 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

3.9 Star
6,565 times
Add to favorites
System Center
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Linux
    1 Posts | Last post August 21, 2015
    • Any solution for Linux clients please?
  • Great little script
    1 Posts | Last post August 25, 2014
    • Worked well.  Have a PS version?
  • 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. :-)