Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Notification Show More
Latest News
Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Disable Windows Hello for Business using Intune ftimg
Disable Windows Hello for Business using Intune – Comprehensive Guide
Intune Autopilot
Aa

Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

Aa
Search
  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Follow US

Home » SCCM » Uninstall ConfigMgr Client from Windows Server Core

SCCM

Uninstall ConfigMgr Client from Windows Server Core

By Prajwal Desai 1 View Add a Comment February 18, 2022 4 Min Read

In this post I will show you how to uninstall ConfigMgr client from Windows Server Core. You can either uninstall the SCCM agent manually from Server Core or use a script.

In my previous post, I covered on installing the SCCM agent on Windows Server Core. However when it comes to uninstalling the client agent, the process is bit different.

There are lot of interesting things that you could do on Windows Server core with Software Center. To know more about that read my post – https://www.prajwaldesai.com/sccm-software-center-on-windows-server-core/.

So I will cover two methods to perform client uninstall. First we will look at manually uninstalling the SCCM agent from Server Core. Second, we will use Run Script feature and run the uninstall command to remove SCCM client agent.

- Advertisement -
Ad image

In the first method we uninstall the Configuration Manager client software from a computer by using CCMSetup.exe with the /Uninstall property. This is what Microsoft also recommends. This method works whenever you want to uninstall the agent, be it client or a server.

Second method, we will use Run Scripts feature and deploy the same command to uninstall the agents from Server Core. You may also run the script on a device collection so that you remove the SCCM agents from multiple servers.

Manually Uninstall ConfigMgr Client from Windows Server Core

You can manually uninstall ConfigMgr client from Windows Server Core by running a simple command – ccmsetup.exe /uninstall.

  • Run the command prompt as administrator.
  • Change the path to client agent location – C:\Windows\ccmsetup.
  • Run the command ccmsetup.exe /uninstall.
  • Go to C:\Windows\ccmsetup\Logs and open ccmsetup.log file to monitor the client uninstallation.
  • Restart your computer after you uninstall the client agent.
Manually Uninstall ConfigMgr Client from Windows Server Core
Manually Uninstall ConfigMgr Client from Windows Server Core

Launch the CMTrace tool and open the ccmsetup.log file from %windir%\ccmsetup\logs\. Wait while the client agent uninstalls and when it’s complete, restart your server.

Manually Uninstall ConfigMgr Client from Windows Server Core
Manually Uninstall ConfigMgr Client from Windows Server Core

CCMSetup.exe /Uninstall Using Run Scripts

The manual client agent uninstall method is feasible when you have just one server or probably few servers. What if you have more servers and you want to uninstall agents at once ?.

Again we use the CCMSetup.exe with the /Uninstall property to uninstall the agents. However we will run it using Run Scripts feature.

First of all in the Configuration Manager console, go to Software Library\Overview\Scripts. Right click Scripts and select Create Script. Specify the script name such Uninstall ConfigMgr Agent and enter the script below.

What you enter is the following command – C:\Windows\ccmsetup\ccmsetup.exe /uninstall. Complete the remaining steps. When you do that, right click the Script and click Approve. You must approve the script before you deploy it.

You can either deploy this script to a device collection or a single computer. Right click the Server Core device and click Run Script. Select the ConfigMgr agent uninstall script and click Next. Complete the rest of the steps.

On your Windows Server Core machine, launch CMtrace tool and open the ccmsetup.log file to monitor the client agent uninstall.

CCMSetup.exe /Uninstall Using Run Scripts
CCMSetup.exe /Uninstall Using Run Scripts

Sign Up For Weekly Newsletter

Get the most recent information on Configuration Manager, Intune, Windows 11, Windows 365, Autopilot, Azure, Software Reviews, and much more by subscribing to the newsletter.
By signing up, you agree and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share this Article
Facebook Twitter Copy Link Print
Avatar photo
By Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Enterprise Mobility. He writes articles on SCCM, Intune, Configuration Manager, Microsoft Intune, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Previous Article Enable Enhanced Protection in Google Chrome Enable Enhanced Protection in Google Chrome
Next Article Failed to Extend SCCM Active Directory Schema Error 8202 Failed to Extend SCCM Active Directory Schema Error 8202
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recast Sponsored AD
Ad image
Patch My PC Sponsored AD
Ad image

Latest Articles

Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

You Might Also Like

Find the Package ID of SCCM Application
SCCM

3 Best Ways to Find the Package ID of SCCM Application

By Prajwal Desai
SCCM Updates Install Error 0x800b0109 0x8024b303
SCCM

Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303

By Prajwal Desai
How to Install VMware Tools on Windows Server Core
Windows Server

How to Install VMware Tools on Windows Server Core VM

By Prajwal Desai

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Lost your password?