Uninstall SCEP Client using SCCM 2012 R2

A common request via my ticketing tool is for the easiest way to uninstall the System center Endpoint protection client from windows computer. Most of the admins prefer to uninstall the SCEP client using group policy or a logon script. Well, I believe that method works fine however I wanted to uninstall the SCEP client using SCCM. We will now create a script that uninstalls the SCEP client from Windows computers. We will basically create a package and add the script to that package and then deploy it to computers.

Create a new text document and rename it to “Uninstall MEP.bat“. Right click the batch file and edit with Notepad. Now add the below code to the batch file and save the file. Let me tell you this is a very simple code and works correctly.

1 2 @echo off C:\Windows\ccmsetup\scepinstall.exe /u /s

After you are ready with the batch file, create a new package in SCCM. Right click Packages and click Create Package.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap1.jpg

Specify the name for the package and browse to the folder where the script is located. Click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap2.jpg

Choose the program type as Standard Program. Click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap3.jpg

Specify the name of the standard program, in the command line text box click Browse and select the batch file and click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap4.jpg

No changes to be made here, click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap5.jpg

Click on Close.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap6.jpg

Note

You need to distribute the content to the DP. Right click on the package and click Distribute Content. Proceed to the below steps only when the package is available with DP.

Right click on the package and click Deploy. Choose the Collection that you want to deploy. Click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap7.jpg

Set the Purpose as Available. Click Next.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap8.jpg

No changes to made here, click Next and complete the wizard.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap9.jpg

After few minutes, on the client computer the package is available. Select the package and click on Install.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap10.jpg

On the client computer open the execmgr.log file for troubleshooting purpose. We see that the script has been executed and the SCEP client has been uninstalled successfully from the computer.

http://prajwaldesai.com/wp-content/uploads/2014/09/How-to-Uninstall-SCEP-Client-using-SCCM-2012-R2-Snap11.jpg