Jump to content


  • 0
inzou

Migration from sms 2003 to sccm 2007

Question

Hi All,

 

I want to do a migration from my sms server to sccm 2007.

My plan is to deploy first a new sms server as child of the existing one (sms1 is parent and sms2 is child).

after replication between them (all objects were replicated),i break the relationship between parent/child.

now using the new sms2 server,i find that all my machines clients (previously replicated from the parent sms1)still assigned to the old sms1 server and have the parent sitecode.

my issue is how to reassign them to the new sms2 server.

your help will be appreciated.

thanks in advance.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi All,

 

I want to do a migration from my sms server to sccm 2007.

My plan is to deploy first a new sms server as child of the existing one (sms1 is parent and sms2 is child).

after replication between them (all objects were replicated),i break the relationship between parent/child.

now using the new sms2 server,i find that all my machines clients (previously replicated from the parent sms1)still assigned to the old sms1 server and have the parent sitecode.

my issue is how to reassign them to the new sms2 server.

your help will be appreciated.

thanks in advance.

 

Hi ,

 

You can try re-pushing the clients from the SCCM console or you can try the below script to change the site code. You can distribute this script thru software distribution method or can apply as logon script.

 

 

 

sSiteCode = "xxx"

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

 

'xxx - refers to site code

 

 

NOTE : Please try the same on your lab first before testing it to your production environment.

 

regards ,

Raj

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.