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.

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

How to Uninstall SCEP Client using SCCM 2012 R2

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

How to Uninstall SCEP Client using SCCM 2012 R2

Choose the program type as Standard Program. Click Next.

How to Uninstall SCEP Client using SCCM 2012 R2

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

How to Uninstall SCEP Client using SCCM 2012 R2

No changes to be made here, click Next.

How to Uninstall SCEP Client using SCCM 2012 R2

Click on Close.

How to Uninstall SCEP Client using SCCM 2012 R2

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.

How to Uninstall SCEP Client using SCCM 2012 R2

Set the Purpose as Available. Click Next.

How to Uninstall SCEP Client using SCCM 2012 R2

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

How to Uninstall SCEP Client using SCCM 2012 R2

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

How to Uninstall SCEP Client using SCCM 2012 R2

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.

How to Uninstall SCEP Client using SCCM 2012 R2