Clients aren't assigned to MPs. Clients choose MPs based on the site they are assigned to. Thus, what you want and need here is to reassign the client to the other site. You can do this from the ConfigMgr Control Panel applet or using a script -- neither of which reinstall the client.
SCCM Migrate a Client to a different MP
Hi @all ,
i am having the following situation.
I am having two SCCM Sites not knowing anything from each other.
Now I want to migrate Clients form MP1 to MP2.
I got it working by removing the SCCM client and reinstalling the client again using ccmsetup.exe and parameters:
SMSSiteCode=XXX SMSMP=MP2.domain2
But at the end I do not want to uninstall all clients and reinstall them. I want to have a script which is doing the migration without uninstalling and reinstalling.
BR
Florian
2 answers
Sort by: Most helpful
-
Jason Sandys 31,311 Reputation points Microsoft Employee
2021-02-02T18:12:20.13+00:00 -
Fiona Yan-MSFT 2,311 Reputation points
2021-02-03T05:17:28.573+00:00 Thank you for posting in Microsoft Q&A forum.
We could create a package to reassign the client to the other site by using the change the site code script of the Configuration Manager Client.
The script may like the below:
{ On Error Resume Next
set oSMSClient = CreateObject ("Microsoft.SMS.Client")
oSMSClient.SetAssignedSite "P01",0
set oSMSClient=nothing}
For more details, please refer to this helpful guide.Have a nice day!
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.