Tuesday, September 09, 2014

Manually removing SCCM 2012 SP1 Secondary Site

By simply deleting & choosing uninstall of the secondary site from SCCM Console's Administration tab should be sufficient to remotely uninstall all the necessary secondary site components. However in certain cases, the remote uninstall procedure could be stalled and the secondary site's status would be left in "Deleting" state. Steps below are to manually remove the secondary site from both the Primary site's database as well as on the secondary site's system as well.

On the Primary Site server
1. Run: %ConfigMgrProgramFilePath%\bin\X64\00000409\preinst.exe /delsite XXX
*where XXX is the secondary site's code
2. Refresh & verify from the SCCM Console that the secondary site (and it's system) is deleted.

On the Secondary Site server
1. Uninstall the ConfigMgr Secondary Site from the Control Panel
2. Uninstall the Microsoft SQL server and its components from the Control Panel
3. Remove the secondary site's ConfigMgr ProgramFile folder
4. Remove the registry key: HKLM\Software\Microsoft\SMS
5. Restart