Monday 27 July 2009

Removing Duplicate PCs from SCCM 2007

This Problem occurs when you deploy new PCs using Ghost images that already contain an SCCM Client, without Sysprepping them first.

This Process will allow you to remove any duplicate IDs from your SCCM enviroment.

1. Assuming you will be doing this to the Client PC remotely...

Kill the ccmexec process using PS tools process killer ( http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx) ;
"pskill.exe -t file://PCNAME/ ccmexec.exe"

Alternativley if you are logged on to the PC, simply kill the process from Task Manager.

2. Remove the SCCM Client;
e.g C:\WINDOWS\system32\ccmsetup\ccmsetup.exe /uninstall

3. Delete client config file;
e.g C:\Windows\smscfg.ini

4. Delete the following registry keys;
HKLM/Software/Microsoft/CCM
HKLM/Software/Microsoft/SMS
HKLM/Software/Microsoft/System Certificates/SMS

5. Remove the machine entry from SCCM database.

Depending on your client discovery settings the entry should re-appear soon enough with no client installed, then a new client installation, with completely new GUID and H/W IDs should soon follow.