Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Uninstall or remove sccm client agent from Servers

Israel Chavez

Active Member
Messages
32
Reaction score
0
Points
6
Hello,

For some reason, the client got installed in all of our servers which I did not told it to do. How can I uninstall the client from the servers without causing chaos? On the "Software Update Point Components Properties" and I only have windows 7, office 2013/2016 and Silverlight. Why would it get installed on the servers?

Thanks,
 

Have you enabled the site wide auto client push option ?. To uninstall the sccm client you can launch the
CMD and go to the location where CCMSetup.exe resides on the managed device then run CCMSetup.exe /uninstall command.



Or you could try this script. Please test the script on a test computer first and then use it in prod environment.

Code:
@echo off
echo Please Wait while the system is uninstalling Microsoft's SMS/SCCM Client.

echo Checking for SCCM 2007 client...
IF EXIST %windir%\System32\ccmsetup\ccmsetup.exe GOTO DEL07
echo No SCCM 2007 client found.

echo Checking for SCCM 2012 client...
IF EXIST %windir%\ccmsetup\ccmsetup.exe GOTO DEL12
echo No SCCM 2012 client found.

echo Checking for SMSCFG file...
IF EXIST %windir%\SMSCFG.INI GOTO DELINI
echo No SMSCFG file found.
echo All software already removed or no client installed.

GOTO END

:DEL07
echo Found SCCM Client v2007. Removing...
%windir%\System32\ccmsetup\ccmsetup.exe /uninstall
RD /S /Q %windir%\System32\ccmsetup
RD /S /Q %windir%\System32\ccm
RD /S /Q %windir%\System32\ccmcache
echo SCCM Client 2007 removed.
IF EXIST %windir%\ccmsetup\ccmsetup.exe GOTO DEL12
IF EXIST %windir%\SMSCFG.INI GOTO DELINI
GOTO END
 
We recently had the CCM Client install on all of our servers. We are using Client Push installation, and did not check the "Servers" box. We can remove it manually, but do you have any idea how it was installed? We are not installing the client any other way than the push installation.
 
No, not the Domain controllers. We have servers with Server 2012 R2, that have 3-4 virtual servers on each. The CCM Client installed itself on all of them except the domain controllers. We are using the Client-Push install with these settings:

http://imgur.com/a/56lfr
 
Back
Top