Forcing upgraded client to rediscover its sight assignment
Hi, I used an existing SMS 2003 service to upgrade existing SMS 2003 advanced clients with SCCM 2007 clients. The rollout was successful. But to make upgraded client reassign itself to new SCCM 2007 primary site SCCM 2007 site code was required to input on Advanced Tab and press "Apply". Can we by somewhow initiate forcing upgraded clients to rediscover its sight assignment after they're being upgraded? meaning automate the step above? passing parameters to ccmsetup.exe / Thanks. Regards, Shahzad.
November 23rd, 2011 9:45pm
I used this script to migrate automatically 100thousands systems for my clients..... http://paddymaddy.blogspot.com/2011/05/sms-to-sccm-auto-migration-script_46.html SMS to SCCM Auto Migration Script Copy.bat xcopy /y ccmsetup.exe c:\windows\temp\ xcopy /y ccmclean.exe c:\windows\temp\ xcopy /y install.bat c:\windows\temp\ schtasks /CREATE /SC MINUTE /mo 90 /TN Migration /TR "C:\windows\temp\install.bat" /RU SYSTEM schtasks /CREATE /SC MINUTO /mo 90 /TN Migration /TR "C:\windows\temp\install.bat" /RU SYSTEM Install.bat C:\windows\temp\ccmclean.exe /client /q C:\windows\temp\Ccmsetup.exe /mp:ServerName SMSSITECODE=Sitecode SCHTASKS /delete /TN Migration /F Advertise the Copy.bat then automatically clients will installing the sccm If you want you can hardcode the site code (In my case lot of Prymary sites so used as AUTO) This posting is provided "AS IS" with no warranties or guarantees, and confers no rights. |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.
November 23rd, 2011 10:25pm
If you have already migrated and you stuck with the Sitecode... then you can take advantage of logon script .... Below is the script you can use it... '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 This posting is provided "AS IS" with no warranties or guarantees, and confers no rights. |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.
November 23rd, 2011 10:28pm