• This thread is locked from future replies

Uninstalling MSE

Please see this wiki article, which supersedes this locked post.

Uninstalling Microsoft Security Essentials



Update 9 June, 2013 (0x80073b01 ):

If you are attempting to remove MSE after encountering 0x80073b01 and attempts to remove MSE are met with an error regarding permissions and contacting your administrator, your PC is infected and it has modified the file structure of MSE.

Courtesy of forum member, bhringer, posted on June 3, 2013:
HitmanPro 3.7.6 Build 201 was released on June 3rd. This includes some additional repairs that restores MSE without the need to uninstall/reinstall.

Direct download

Regular download

HitmanPro rescues anti-virus programs from malware attack


Typically, Microsoft Security Essentials can be removed by going to Control Panel - Programs and running the uninstall there.

However, there are times when this won't work.

Official Solution:

Microsoft has published a knowledgebase article for how to manually remove Microsoft Security Essentials version 2.x:

Microsoft has developed a Fix-It for cleaning up/removing  Microsoft Security Essentials Version 1.x. More information here:

(The version of MSE can be found by opening Microsoft Security Essentials and clicking the down arrow to the right of Help in the upper right of the main program interface, then selecting About… Version 2 was released at the end of 2010. All new installs after that time would be version 2.x and older versions should have been upgraded beginning in January of 2011. Version 4 was released at the end of April 2012)


The following was added 5/7/12 based on a reply from Support to address removal of MSE to resolve issues with a failed upgrade from 2.x to v4:

The following is the uninstall part of what MS Support provided when responding to an inquiry where uninstalling was a problem and our normally recommended procedures were not working.


Use our FixIt Tool to uninstall Microsoft Security Essentials. 

This tool is designed to fix un-installation issues like, MSE registry issues, removes remnants of Microsoft Security Essentials from your computer.

a. To do this run the FixIt tool from the following links.

b. Click the below link and select Run Now button.

c. After downloading and running for the first time

d. Select Run on small pop-up window and select Run on Internet Explorer-Security Warning Window.

e. Select Detect problems and let me select the files to apply.

f. Select Uninstalling.

g. After detecting problems Select Microsoft Security Client to uninstall and click Next.

h. Repeat the steps from b to f and, this time select Microsoft Antimalware from list to uninstall and click Next.

i. Restart your computer and reinstall Microsoft Security essentials.




If that doesn't work, please proceed with the advanced removal process:

Further down is a set of commands which will be executed automatically in the background. You need to save this file as "mseremoval.bat" on desktop and run that batch file.

msremoval.txt is given at the end of the post - copy and paste into notepad and follow above information


Uninstall and removal of Microsoft Security Essentials files and folders using advanced method

a. Right click on the attachment and select SaveAs.

b. In the File Name section, enter the name as "mseremoval.bat" with quotes and click Save.

c. In the Save As Type, select All Files.

d. Right click on mseremoval.bat and select Run.

e. A command prompt window will open and then close when the registry updates have completed, once this window closes you can delete the mseremoval.bat file that you created earlier in these steps

f. Restart and reinstall Microsoft Security Essentials.


**** MSREMOVAL.TXT **** (don't copy this line but do copy everything below)

cd /d "%ProgramFiles%\Microsoft Security Client"

setup.exe /x

TASKKILL /f /im MsMpEng.exe

TASKKILL /f /im msseces.exe

net stop MsMpSvc

sc delete MsMpSvc

REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MsMpSvc" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Security Client" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Antimalware" /f

REG DELETE "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Run\MSC" /f

REG DELETE "HKEY_CLASSES_ROOT\Installer\Products\4C677A77F01DD614880F352F9DCD9D3B" /f

REG DELETE "HKEY_CLASSES_ROOT\Installer\Products\4D880477777087D409D44E533B815F2D" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Security Client" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{774088D4-0777-4D78-904D-E435B318F5D2}" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{77A776C4-D10F-416D-88F0-53F2D9DCD9B3}" /f

REG DELETE "HKEY_CLASSES_ROOT\Installer\UpgradeCodes\1F69ACF0D1CF2B7418F292F0E05EC20B" /f

REG DELETE "HKEY_CLASSES_ROOT\Installer\UpgradeCodes\11BB99F8B7FD53D4398442FBBAEF050F" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\4C677A77F01DD614880F352F9DCD9D3B" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\4D880477777087D409D44E533B815F2D" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\11BB99F8B7FD53D4398442FBBAEF050F" /f

REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\1F69ACF0D1CF2B7418F292F0E05EC20B" /f

takeown /f "%ProgramData%\Microsoft\Microsoft Antimalware" /a /r

takeown /f "%ProgramData%\Microsoft\Microsoft Security Client" /a /r

takeown /f "%ProgramFiles%\Microsoft Security Client" /a /r

REM Delete the MSE folders.

rmdir /s /q "%ProgramData%\Microsoft\Microsoft Antimalware"

rmdir /s /q "%ProgramData%\Microsoft\Microsoft Security Client"

rmdir /s /q "%ProgramFiles%\Microsoft Security Client"

REM Stop the WMI and its dependency services

sc stop sharedaccess

sc stop mpssvc

sc stop wscsvc

sc stop iphlpsvc

sc stop winmgmt

REM Delete the Repository folder.

rmdir /s /q "C:\Windows\System32\wbem\Repository"

sc stop


**** MSREMOVAL.TXT **** (don't copy this line but do copy everything above)


There are two manual removal methods that you can try:


Alternate solution #1


The following information was provided by forum user, Aiscer, to assist in removing MSE if using Control Panel/Programs does not work properly:

1. Download the MSE installer for your Operating System from the Home Page:



Note: Editing the registry incorrectly can cause your system to become unusable. Proceed with caution.

Use the Registry Editor to delete the following key from the Registry.

On XP, go to Start, then Run, and type:


Press Enter

On Vista/Windows 7, in the Search box above the Start "orb" type:

    Regedit -don't press enter.

Right click regedit.exe in the results list above and select, "Run as Administrator"


Navigate to:

     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Security Essentials

by expanding the branches in the left pane until the branch forMicrosoft Security Essentials is displayed.

Right click "Microsoft Security Essentials" in the left hand pane and select Delete.

Close the registry editor.





Click on the Start Menu, go to All Programs, Accessories, Command Prompt

A “DOS” window opens

Assuming that your system drive is C: -

At the prompt, type:

    CD C:\program files\microsoft security client\backup\x86

Press Enter


    setup.exe /u

Press Enter

Setup will launch and will uninstall MSE


Vista and Windows 7:

Type command in the search box (above the Start “orb”), do not press enter

In the results list above, under Programs, right click Command.exe and select "Run as Administrator"

Approve the action via the UAC prompt, if it appears.

A “DOS” window opens.

Assuming that your system drive is C: -

At the prompt, type:

     CD C:\Program Files\Microsoft Security Essentials\Backup\x86  (for 32 bit Windows)

     CD C:\Program Files\Microsoft Security Essentials\Backup\amd64  (for 64 bit Windows)

Press Enter

At the prompt (c:\Program Files\Microsoft Security Essentials\Backup\x86> [or amd64>]), type:

     Setup.exe /u

Press Enter

Setup will launch and will uninstall MSE



Windows Insider MVP (Security), Moderator Microsoft Community
79 people had this question

Abuse history