In this article, we’ll show you how to uninstall SCCM client from a Windows computer. When you want to remove the agent completely, you can either run the ccmsetup.exe /uninstall command or use the ccmclean app to get the job done.
When you register a device with SCCM, it needs to have a client agent installed to communicate with the management point. If the agent malfunctions or crashes while installing apps from Software Center, you can repair the SCCM client by manually removing and reinstalling it.
If you wish to perform ConfigMgr client uninstallation on a limited number of devices, you may manually do so. If there are multiple devices from which you want to remove the client, we recommend using a PowerShell script instead.
Uninstall SCCM Client using CCMSetup
Administrators use the CCMSetup.exe command to manually install the Configuration Manager client. The same CCMSetup.exe, when executed with the /uninstall parameter, will remove the client from the computer. Read the following article to understand the ccmsetup client installation parameters in Configuration Manager.
Here’s how you can uninstall the SCCM client using ccmsetup. First, launch the command prompt as an administrator. Change the path to the location of the client agent, which is C:\Windows\ccmsetup.
In the command prompt, type ccmsetup.exe /uninstall and press the enter key. The client uninstallation begins now. Wait for the client agent to completely uninstall and restart your computer once done.
Remove SCCM Client using ccmclean
When it comes to ConfigMgr client uninstallation, ccmclean not only removes the client agent but also erases any remaining traces on the client. This tool was first included with the SMS 2003 toolkit but very soon it was abandoned. Microsoft doesn’t support using this tool in current branch environments.
If you have a copy of the ccmclean tool, you can use the following steps to remove the SCCM client and all of its folders:
Copy the ccmclean tool on the Windows computer that requires client removal. Launch ccmclean.exe as an administrator. The tool first detects the client agent and begins the uninstallation.
After the tool uninstalls the SCCM client agent, it displays a message box stating, “Your system has been successfully cleaned.” This confirms the Configuration Manager client has been removed permanently.
Monitor ConfigMgr Client uninstallation
When you uninstall the client using any of the methods described above, the entire uninstallation can be monitored using the below two logs:
- Ccmsetup.log: This logs errors encountered by the SCCM agent and helps you troubleshoot client installation problems.
- Client.msi_uninstall.log: Records the uninstallation of the SCCM client agent on a Windows computer.
The line “CcmSetup is exiting with return code 0” in ccmsetup.log confirms that the SCCM client has been removed successfully from the computer.
That’s all we wanted to cover about the client uninstallation. You can consider reading our guide on clearing the cache in Configuration Manager. If you enjoyed it, please like and share this article, tagging CloudGuides.