4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (2024)

In this article, I will cover different methods to uninstall SCCM client from computers. You can use different methods to remove the Configuration Manager client software on Windows devices.

You may already be familiar with the SCCM client if you’ve started learning Configuration Manager. It is also referred to as a Configuration Manager agent or a Configuration Manager client agent. There are many ways to install the Configuration Manager client agent on your Windows PCs. Here is the best article published on how to install SCCM client agent in Windows 11.

This article describes every method that you can use to uninstall the ConfigMgr client. You can learn which one works best for your organization and opt for that method.

Table of Contents

What is Configuration Manager Client?

The Configuration Manager Agent, also known as the SCCM (System Center Configuration Manager) agent or client, is a software component installed on devices within an organization’s network to facilitate centralized management and administration using Microsoft’s System Center Configuration Manager (SCCM) infrastructure.

The Configuration Manager Agent enables administrators to enforce security policies, track hardware and software inventory, deploy software applications and updates, distribute operating system images, and remotely troubleshoot client devices.

Also Read: Easily Modify SCCM Client Policy Polling Interval Time

When do you need to remove the ConfigMgr Agent?

Occasionally, you might want to remove or get rid of the SCCM client if you discover that it wasn’t installed correctly. Or when the SMS agent host service has errors or if the software center is crashing, removing the agent and installing it makes sense.

Whenever you encounter issues with the ConfigMgr agent, you can always repair the SCCM client agent first. Repairing the client agent means uninstalling the SCCM client agent from Windows and re-installing it.

Most Configuration Manager administrators prefer to remove the SCCM client manually from the computers. If you need to remove the client from multiple computers, you can use a PowerShell script, which will be covered in this tutorial.

Note: When you deploy or install the agent, the Software Center is also installed on the computer. Also, when you clean up the agent, the Software Center is also removed from the device. Read how to customize the ConfigMgr software center appearance.

Recommended Article: SCCM Client Upgrade Options | Perform Automatic Client Upgrade

Method 1: Manually Uninstall SCCM Client using CCMSETUP

You can manually uninstall the SCCM client by running a simple command: ccmsetup.exe /uninstall.

  • On your Windows computer, run the command prompt as an administrator.
  • Change the path to the client agent location toC:\Windows\ccmsetup.
  • Run the commandccmsetup.exe /uninstall.
  • Restart your computer after you uninstall the client agent.
4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (1)

Method 2: Remove SCCM Client Using CCMCLEAN

The Microsoft tool Ccmclean.exe, which was part of the SMS 2003 toolkit, aids in the removal of the SCCM client. SMS 2003 is now out of date, but the ccmclean tool is still functional.

You may not find the CCmclean tool installer online; however, I have saved a copy of this tool for you. Download the ccmclean tool fromthe OneDrive link. The ccmclean tool version that you get is 2.50.

The ccmclean tool works by detecting the SMS agent installer and uninstalling the agent on your computer. You have to run this tool manually on a computer to wipe out the SMS agent. You cannot use this tool to uninstall the SCCM client remotely.

Perform the following steps to uninstall the SCCM client using ccmclean.exe:

  • Download the ccmclean.exe tool and copy it over to the target computer.
  • Run ccmclean.exe as anadministrator.
  • The tool uninstalls the SCCM agent, and at the end, a message box appears: “Your system has been successfully cleaned.”
4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (2)

The message “Your system has been successfully cleaned” confirms the SCCM client agent has been removed successfully by the ccmclean tool.

The ccmclean also removes all the folders created by the ConfigMgr agent. Before reinstalling the ConfigMgr agent on this computer, restart your computer once. The client agent is entirely removed from the system using ccmclean.

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (3)

Method 3: Uninstall SCCM Client using Right Click Tools

With Right Click Tools installed for Configuration Manager, you can use the “Uninstall SCCM Client” feature to completely remove the Configuration Manager client from remote computers.

This method requires you to install Right Click Tools console extension for SCCM. After you install the RCT for SCCM, you get the option to uninstall the SCCM client from the Configuration Manager console.

Use the below procedure to uninstall SCCM client from a remote computer using Right Click Tools:

  • Launch the Configuration Manager console.
  • Navigate to Assets and Compliance\Overview\Devices.
  • Right-click a device and select Right Click Tools > Client Tools > Uninstall SCCM Client.
4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (4)

You get a message box asking, “Are you sure you want to uninstall the client on the machine?” Click Yes to confirm the removal of the ConfigMgr client.

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (5)

Method 4: Uninstall ConfigMgr Agent using PowerShell

In this method, I will show you how to uninstall the SCCM agent on multiple computers using a PowerShell script. First, download the uninstall SCCM Client PowerShell script from GitHub.

To run this script, launch PowerShell as an administrator. Run UninstallSCCMClient.ps1 and this script uninstalls the Configuration Manager client from the computer.

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (6)

Monitor SCCM Client Uninstall with Log Files

After you remove the ConfigMgr client from the computer, you can monitor the client agent uninstall with the help of log files. There are two ConfigMgr log files that you review to monitor the SCCM client uninstall process.

  • Ccmsetup.log: This provides information about client-based operating system actions. It can be used to troubleshoot client installation problems.
  • Client.msi_uninstall.log: Records the uninstallation of the SCCM client agent on a Windows computer.

To monitor the SCCM client agent uninstall, go to C:\Windows\ccmsetup\Logs on the computer and open the ccmsetup.log file to monitor the client uninstallation. The line “CcmSetup is exiting with return code 0” in ccmsetup.log confirms that the SCCM client has been removed successfully.

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (7)

You can use any of the ConfigMgr log file viewers to open the SCCM log files and review the details. The below log snippet is from ccmsetup.log from the C:\Windows\ccmsetup\Logs path on the client computer. This log file records the details of the ConfigMgr client removal.

==========[ ccmsetup started in process 6908 ]==========ccmsetupRunning on platform X64Detected client installed with version '5.00.9068.1026'ccmsetupUpdated security on object C:\Windows\ccmsetup\cache\.ccmsetupLaunch from folder C:\Windows\ccmsetup\ccmsetupCcmSetup version: 5.0.9068.1026ccmsetupFolder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist.Folder 'Microsoft\Microsoft\Configuration Manager' not found. Task does not exist.Updating MDM_ConfigSetting.ClientDeploymentErrorCode with value 0[CORPM1] Running on 'Microsoft Windows 10 Pro' (10.0.19044). Service Pack (0.0). SuiteMask = 272. Product Type = 18ccmsetupCcmsetup command line: "C:\Windows\ccmsetup\ccmsetup.exe" /uninstallTask 'Configuration Manager Client Retry Task' does not existUninstalling product '{D95FAB92-2BDF-488A-BE50-22B7C7C724D5}'.Running installation package Product: {D95FAB92-2BDF-488A-BE50-22B7C7C724D5} Log: C:\Windows\ccmsetup\Logs\client.msi_uninstall.log Properties: MSI: Action 18:32:59: CcmRemoveSystemTask. Deletes a System Task from WMI.MSI: Action 18:32:59: CcmRemoveEndpoint. Removes endpoint gathered in the action CcmRemoveEndpointsInit with WMIMSI: Action 18:33:13: RemoveRegistryValues. Removing system registry valuesUninstall of product '{D95FAB92-2BDF-488A-BE50-22B7C7C724D5}' succeeded.Uninstall succeeded.Deleted file C:\Windows\ccmsetup\ccmsetup.cabccmsetupFailed to delete file '\\?\C:\Windows\ccmsetup\ccmsetup.exe' (5). Moving it to 'C:\CCM466F.tmp' and queuing for deletion on reboot.Unable to load profiler: 0x80070002ccmsetupCould not retrieve value for MDM_ConfigSetting . Error 0x80041002CcmSetup is exiting with return code 0ccmsetup

The below log snippet is of client.msi_uninstall.log from the C:\Windows\ccmsetup\Logs path on the client computer. This log file records the details of the SCCM client agent uninstall.

MSI (s) (50:B0) [17:40:37:417]: Product: Configuration Manager Client -- Removal completed successfully.MSI (s) (50:B0) [17:40:37:417]: Windows Installer removed the product. Product Name: Configuration Manager Client. Product Version: 5.00.9068.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Removal success or error status: 0.MSI (s) (50:B0) [17:40:37:417]: Value of RebootAction property is MSI (s) (50:B0) [17:40:37:417]: Windows Installer requires a system restart. Product Name: Configuration Manager Client. Product Version: 5.00.9068.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Type of System Restart: 2. Reason for Restart: 1.MSI (s) (50:B0) [17:40:37:417]: Product: Configuration Manager Client. Restart required. The installation or update for the product required a restart for all changes to take effect. The restart was deferred to a later time.MSI (s) (50:B0) [17:40:37:433]: Deferring clean up of packages/files, if any existMSI (s) (50:B0) [17:40:37:433]: MainEngineThread is returning 3010MSI (s) (50:64) [17:40:37:433]: RESTART MANAGER: Session closed.MSI (s) (50:64) [17:40:37:433]: No System Restore sequence number for this installation.=== Logging stopped: 3/28/2022 17:40:37 ===MSI (s) (50:64) [17:40:37:433]: User policy value 'DisableRollback' is 0MSI (s) (50:64) [17:40:37:433]: Machine policy value 'DisableRollback' is 0MSI (s) (50:64) [17:40:37:433]: Incrementing counter to disable shutdown. Counter after increment: 0MSI (s) (50:64) [17:40:37:433]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (50:64) [17:40:37:433]: Note: 1: 2265 2: 3: -2147287035 MSI (s) (50:64) [17:40:37:433]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (50:64) [17:40:37:433]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1MSI (s) (50:64) [17:40:37:433]: Post-install cleanup: removing installer file 'C:\Windows\Installer\11e95ea.msi'MSI (s) (50:64) [17:40:37:449]: Post-install cleanup: removing installer file 'C:\Windows\Installer\11e95eb.msp'MSI (s) (50:64) [17:40:37:449]: Post-install cleanup: removing installer file 'C:\Windows\Installer\188253b.msp'MSI (s) (50:64) [17:40:37:449]: Destroying RemoteAPI object.MSI (s) (50:24) [17:40:37:449]: Custom Action Manager thread ending.MSI (c) (B0:CC) [17:40:37:449]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1MSI (c) (B0:CC) [17:40:37:449]: MainEngineThread is returning 3010

Final Thoughts

You can remove SCCM client using any of the techniques described in this post. Select the strategy that will work best for your business. ConfigMgr agent installation is required in order to manage computers using SCCM. Therefore, make sure that the SCCM agent is running on all of your devices.

Sign Up For Newsletter

Join our newsletter to stay updated and receive all the top articles published on the site! Get the latest articles delivered straight to your inbox.

By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client (2024)

FAQs

4 Methods to Uninstall SCCM Client | Remove ConfigMgr Client? ›

If the value of ProvisioningMode is True in the following registry key: HKLM\Software\Microsoft\CCM\CcmExec, then the client is on provisioning mode. Remove the client out of provisioning mode and modify the value of ProvisioningMode to False in the following registry key: HKLM\Software\Microsoft\CCM\CcmExec.

How do I remove SCCM Client from provisioning mode? ›

If the value of ProvisioningMode is True in the following registry key: HKLM\Software\Microsoft\CCM\CcmExec, then the client is on provisioning mode. Remove the client out of provisioning mode and modify the value of ProvisioningMode to False in the following registry key: HKLM\Software\Microsoft\CCM\CcmExec.

How do I delete inactive clients in SCCM site maintenance? ›

Two Site Maintenance tasks control stale record deletion in SCCM. Within the Configuration Manager console, these can be accessed under Administration/Site Configuration/Sites – Site Maintenance. Within Site Maintenance, you will see two tasks named: Delete Aged Discovery Data and Delete Inactive Client Discovery Data.

How do I remove a server from Configuration Manager? ›

In the Configuration Manager console, go to the Administration workspace. Expand Site Configuration, and then select the Servers and Site System Roles node. Select the site system server with the role to remove.

How to repair SCCM client? ›

Repair SCCM Client Agent using CCMRepair.exe Command Line Login to your computer. Run the Command Prompt as Administrator. Change the path to C:\Windows\CCM. To begin the SCCM client agent repair, run the command ccmrepair.exe.

How do I uninstall a provisioning package? ›

Provisioning packages can be removed by an administrator by using the Add or remove a provisioning package available under Settings > Accounts > Access work or school.

How do I remove deployment from SCCM client? ›

Select the application or application group that includes the deployment you want to delete. Switch to the Deployments tab of the details pane, and select the deployment. In the ribbon, on the Deployment tab in the Deployment group, select Delete.

How do I restart Configuration Manager client Service? ›

Select the device you want to restart within a collection in the Device Collections node of the console. In the ribbon, select Client Notification, and then select Restart. An information window opens about the restart. Select OK to confirm the restart request.

How to make SCCM client inactive to active? ›

If you have SCCM (System Center Configuration Manager) clients that are showing as inactive but are up and running, there are a few troubleshooting steps you can take to resolve this issue: Check Client Health: Verify the health of the SCCM client on the affected machines.

How do I uninstall MP in SCCM? ›

Right Click on Management Point and Select Remove. Click on Yes to confirm the removal of the MP role from the site system server.

Where is Configuration Manager SCCM? ›

Connecting to SCCM

Navigate to Admin | Configuration and select the Foreign Systems tab. Select System Center Configuration Manager.

References

Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 5978

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.