How to Uninstall SCEP Client using SCCM 2012 R2

23104

How to Uninstall SCEP Client using SCCM 2012 R2 In this post we will see how to uninstall SCEP client using SCCM 2012 R2. I have been asked most of the times in my Support Forums on what is 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.

If you are looking for a script that cleans up all the files associated with SCEP client then use the below script. I have had less success with the below script :). In this post I will be using the first code for uninstalling SCEP Clients.

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

 

  • Arshad Husain

    Hi Prajwal,
    Thanks for the Post of Uninstallation Package of EDP on clients side. I would like to know for installation package of EDP for the clients, I need to create as
    Package & use as only Below command . Kindly confirm & if any do let me know it.
    scepinstall.exe /s
    Best Regards,
    Arshad

    • I need to check the exact install command. Did scepinstall.exe /s command worked for you ?

    • @Arshad – why do you need a package for deploying EDP ? I believe you can do it from ConfigMgr console..

  • Ted Wagner

    Nice blog post. A good improvement would be to discuss how to prevent SCEP from re-installing itself.

    • Thank you Ted for the suggestion. I will work on it.

      • Ted Wagner

        Honestly, what I’ve found is the only sure fire way is to remove the Endpoint Protection site role from the site. While you can set the policies not to enable real-time protection, etc. even after uninstalling, my experience has been that SCEP will reinstall itself no matter how you configure the EP policies.