If you need to un-install the SCCM 2012 agent you may find Software Centre remains in the Program Files directory and there isn’t an option in Control Panel to help you finish the process.
In this scenario you can run the CCMsetup.exe again but with the uninstall switch. on the affected server:
1. Open cmd prompt as administrator, run the following commands:
2. Cd c:\windows\ccmsetup
3. ccmsetup.exe /uninstall
Wait 5 minutes and then you should be able to confirm that software centre has been uninstalled and you will see it has disappeared from the Start Menu.
Now delete the following files and folders :
The SMSCFG file is important as this stores agent connection details to your old SMS/SCCM server.