Best Way to Uninstall SCCM Client | Remove ConfigMgr Client

In this blog post, you will learn the best way to uninstall SCCM clients in different ways. You have several options to remove ConfigMgr client from Windows 11 or Windows 10 PCs.

Let’s understand the best way to uninstall SCCM client (How to Remove ConfigMgr Client) from a Windows 10 or Windows 11 device. I think this is the most challenging part for many ConfigMgr Admins. Because there are different ways to uninstall or remove the ConfigMgr client. We will also see how to remove device records from the SQL database.

The following is one of the top viewed posts – How to Uninstall Remove SCCM Client using CCMClean exe | ConfigMgr. The CCMCean tool is anymore supported by Microsoft but I could see it still works. I don’t recommend uninstalling the ConfigMgr client using the CCMClean tool even though it will work (shh – I still believe that this tool removes the client more cleanly).

Patch My PC

Don’t worry about the source files of ConfigMgr Client software. I will share the details of source file locations in the following section of this post. The client agent source files can be obtained from both the server and the client-side.

Remove ConfigMgr Client from Database

Before getting into the client software removal process, let’s understand how to remove ConfigMgr client from SCCM SQL Database?.

Removing the ConfigMgr client software from Windows 10 computers does not remove the clients from the site database. The clients that are not updated are automatically purged from the site database after a period of time depending on maintenance tasks /clean-up activities.

1E Nomad

When you want to remove these clients immediately from the SMS site database, use the SCCM Administrator console to delete them.

  • Navigate to \Assets and Compliance\Overview\Devices.
  • Select the device record you want to delete.
  • Click on the Delete button.
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client
  • Click DELETE button from Confirm Deletion Window.
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client

Source File Location to Remove SCCM Client (Uninstall SCCM Client)

As I mentioned above, The client agent source files can be obtained from both the server and the client-side. The following is the location of the client source files C:\Windows\ccmsetup.

You can use the CCMSetup.exe file from the Windows 10 devices. You can also get the latest Configuration Manager source files from the primary server share folder as well.

  • Client Side (Windows 10) – C:\Windows\ccmsetup
  • Server Side – \\ServerName\sms_COD\Client
    • Replace Servername with your primary server FQDN.
    • Replace COD with ConfigMgr site code.
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client

Uninstall SCCM Client using CCMSetup.exe Command Line

You can use the command-line option to remove the SCCM client from Windows PCs. Let’s understand uninstall SCCM Client using CCMSetup.exe the command-Line.

The deletion of a device record from the Configuration Manager console won’t remove the client agent software from Windows 10 devices.

So to remove or clean up the end-to-end configurations of client software using the following command-line tool.

  • Open a Windows command prompt with the administrator’s permission.
  • Change the folder to the location as mentioned above
    • Run the following command cd %windir%\ccmsetup
  • Run the following command: CCMSetup.exe /uninstall
Best Ways to Uninstall SCCM Client | Remove ConfigMgr Client
Best Way to Uninstall SCCM Client | Remove ConfigMgr Client

Logs

The SCCM client uninstallation process using CCMSetup.exe displays no results on the screen. However, you can watch the progress of the uninstall by reading the CCMSetup.log file using the CMTrace tool.

  • Location of the log file: %windir%\ccmsetup\logs\CCMSetup.log

CCMClean to Remove SCCM client

You can try to uninstall or remove ConfigMgr Client using the CCMClean.exe tool. This is also a command-line tool. I have a more detailed explanation about the CCMClean tool in the following post. How to Uninstall Remove SCCM Client using CCMClean exe | ConfigMgr.

NOTE! – CCMClean is not supported by Microsoft.

Best Ways to Uninstall SCCM Client | Remove ConfigMgr Client
Best Ways to Uninstall SCCM Client | Remove ConfigMgr Client

Automation Option to Remove SCCM Client from Multiple Windows PCs

You will have some options to remove SCCM client in an automatic way using PSExec or another scripting method. We can run the CCMSetup.exe or CCMClean.exe on multiple remote machines usingĀ PSEXEC.exe. You should have administrative privileges on that remote machine.

Resources

4 thoughts on “Best Way to Uninstall SCCM Client | Remove ConfigMgr Client”

  1. Can you explain why it would be helpful to delete the device in the site database as well?
    I usually just uninstall with the ccmsetup and then remove the CCM folders. It haven’t caused any issues (as what i’ve noticed).

    Reply
    • Hi, your method is fine. You don’t need to delete the record from the console. It will automatically get deleted as per the configuration settings of the pre defined maintenance tasks.

      Reply
  2. Hi Anoop,

    we are going to decommissioning the existing sccm site sever. the thing is we have more than 300 machines, can you please share the process of ” how to uninstall sccm client agent in every machines at a time after decommission”

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.