Thursday 6 November 2014

SCCM 2012 Client Migration - 2012 Client installation fails with a parallel SCCM 2007 setup running.

Problem Statement: 
You are trying to install SCCM 2012 clients on few test machines but you end up with partial client installation with only 2 actions in Action Tab. Site discovery does not work but if you install client with new site code as a parameter during client installation, site discovery works.You end up thinking this is a boundary issue, but it is not. But make sure you don't have overlapping boundaries and also that you have created Boundary group and also checked the option for enabling use this boundary group for assigning the site.

Symptoms: 
The following registry key reflects to a site code of SCCM 2007 infra even if you have SCCM 2012 installed.
“HKLM\SOFTWARE\Microsoft\SMS\Mobile Client”
Even if you delete this entry, it will keep reappearing.

Applies to

SCCM 2012 Especially during Migration from SCCM 2007
Troubleshooting Steps:
1.    Delete the GPO on Few machines
2.    Run the vbscript below

Option Explicit
Const HKLM = &H80000002 Const sRegKey = "SOFTWARE\Microsoft\SMS\Mobile Client"
Const sRegValueName = "GPRequestedSiteAssignmentCode"
Dim oReg, iReturnValue
Set oReg = GetObject("winmgmts:\\.\root\default:StdRegProv")
iReturnValue = oReg.SetStringValue (HKLM, sRegKey, sRegValueName, "")
wscript.quit iReturnValue


3.    Restart if required and observe the value in the registry key “HKLM\SOFTWARE\Microsoft\SMS\Mobile Client”
4.    Install SCCM 2012 Client.

Root Cause Analysis:
Someone in your organization must have created a GPO for assigning all the clients to the SCCM 2007 infrastructure, even if you delete this GPO, you will most probably not be able to install the clients because the values get tattooed onto the WMI as well. Hence you need to both delete this GPO and also remove the WMI entries using the above script.