Microsoft Security Client Uninstall Command
Uninstall and removal of Microsoft Security Essentials files and folders using advanced method. Before proceeding, make sure that you have first attempted to uninstall Microsoft Security Essentials via Control Panel - Programs. Open Notepad. Copy the lines between. MSREMOVAL.TXT. c. Paste the copied lines into Notepad. This will open an elevated command prompt as Administrator; In the command prompt window copy/paste or type the following: cd C: Program Files Microsoft Security Client setup.exe /x /disableoslimit Choose to Uninstall. Once this has finished, reboot and Microsoft Security Essentials will be gone and Windows Defender should be running correctly. From a command prompt on the client; Unenroll by using the Intune admin console. To unenroll the software client by using the Intune admin console, go to Groups All Computers Devices. Right-click the client, and select Retire/Wipe. Unenroll by using a command prompt on the client. Using an elevated command prompt, run one of the following commands. Method 3: Uninstall MSE Via Command Prompt 1.Press Windows Key + X then select Command Prompt (Admin). 2.Type the following command into cmd and hit Enter: 3.A dialog box will pop up asking you to continue, click Yes/Continue. 4.This will automatically uninstall Microsoft Security Essentials. Or, you can uninstall Microsoft Security Client from your computer by using the Add/Remove Program feature in the Window's Control Panel. On the Start menu (for Windows 8, right-click the screen's bottom-left corner), click Control Panel, and then, under Programs, do one of the following.
: IntermediateJan 01, 2014 what we're trying to do is get rid of security essentials. My co-worker can execute the commands successfully in local or on the individual computers but we can seem to find a way to do it from one computer and only one computer. Its like turning the other computers into zombies and taking away their dignity, instead its security essentials.
Summary
This article collects a number of solutions for uninstalling Microsoft Security Essentials.
Details
NOTE: 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 and folder structure preventing proper functioning or removal of Microsoft Security Essentials in order to reinstall it.
You should download Hitman Pro Kickstart on an uninfected computer, copy it to a USB flash drive and use it to repair MSE and remove the root kit virus, ZeroAccess/Sirefef. Instructions and download here: http://www.surfright.nl/en/kickstart
*******************************************************************
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:
-------------------------------------------------------------------
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.
Clean Uninstall Microsoft Security Essentials
b. Click the below link and select Run Now button.
Microsoft Security Client Uninstall Command Manager
c. After downloading and running for the first time
d. Select Run on smallpop-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.
Fluke networks linkware download. Installation tools for professionals who install and maintain critical network cabling infrastructure. LinkWare PC Software 10.3 (Standalone Install Version) Supports Versiv Firmware v6.3 build 3 release. Use this if installing on a PC that does not have internet access. Download LinkWare 9.7 Cable Test Management SoftwareGet a comprehensive view of your copper and fiber cabling infrastructure.LinkWare allows you to manage test data from multiple testers in a single software application. Simply standardize on one test results database program and convert all existing job records by importing data files created with ScanLink or CableManager.
***********************************************************
If that doesn't work, please proceed with the advanced removal process:
Further down is a setof 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
Before proceeding, make sure that you have first attempted to uninstall Microsoft Security Essentials via Control Panel - Programs.
a. Open Notepad
b. Copy the lines between **** MSREMOVAL.TXT ****
c. Paste the copied lines into Notepad
d. In Notepad, select File/Save As
e. In the File Name section, enter the name as 'mseremoval.bat'with quotes and click Save.
f. In the Save As Type, select All Files.
g. Right click on mseremoval.bat and select Run.
h. A command prompt window will open, the necessary steps will be performed and then it will pause at the end. You can see and copy the results from there. When you depress any key, the command prompt window will close. Once this window closes you can delete the mseremoval.bat file that you created earlier in these steps
i. Restart the computer and reinstall Microsoft Security Essentials.
**** MSREMOVAL.TXT **** (don't copy this line but do copy everything below)
cd /d '%ProgramFiles%Microsoft Security Client'
TASKKILL /f /im MsMpEng.exe
TASKKILL /f /im msseces.exe
TASKKILL /f /im MpCmdRun.exe
net stop MsMpSvc
sc delete MsMpSvc
REG DELETE 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesMsMpSvc' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft Antimalware' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft Security Client' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftMicrosoft Antimalware' /f
REG DELETE 'HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrent VersionRunMSC' /f
REG DELETE 'HKEY_CLASSES_ROOTInstallerProducts4C677A77F01DD614880F352F9DCD9D3B' /f
REG DELETE 'HKEY_CLASSES_ROOTInstallerProducts4D880477777087D409D44E533B815F2D' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallMicrosoft Security Client' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall{774088D4-0777-4D78-904D-E435B318F5D2}' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall{77A776C4-D10F-416D-88F0-53F2D9DCD9B3}' /f
REG DELETE 'HKEY_CLASSES_ROOTInstallerUpgradeCodes1F69ACF0D1CF2B7418F292F0E05EC20B' /f
REG DELETE 'HKEY_CLASSES_ROOTInstallerUpgradeCodes11BB99F8B7FD53D4398442FBBAEF050F' /f
REG DELETE 'HKEY_CLASSES_ROOTInstallerUpgradeCodes26D13F39948E1D546B0106B5539504D9' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Products4C677A77F01DD614880F352F9DCD9D3B' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Products4D880477777087D409D44E533B815F2D' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUpgradeCodes11BB99F8B7FD53D4398442FBBAEF050F' /f
REG DELETE 'HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUpgradeCodes1F69ACF0D1CF2B7418F292F0E05EC20B' /f
takeown /f '%ProgramData%MicrosoftMicrosoft Antimalware' /a /r
takeown /f '%ProgramData%MicrosoftMicrosoft Security Client' /a /r
takeown /f '%ProgramFiles%Microsoft Security Client' /a /r
REM Delete the MSE folders.
rmdir /s /q '%ProgramData%MicrosoftMicrosoft Antimalware'
rmdir /s /q '%ProgramData%MicrosoftMicrosoft 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:WindowsSystem32wbemRepository'
sc stop
PAUSE
EXIT
**** MSREMOVAL.TXT **** (don't copy this line but do copy everything above)
Alternate manual removal method #1 that you can try:
The following information was provided by forum user, Aiscer (updated by PrashantKumar96), 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 MSE Home Page. Save it to your Desktop.
2. Open Command Prompt through RUN or Start Search by typing CMD hit enter. If you are using Vista or Windows 7 right click on CMD and select 'Run as Administrator'.
3. In the Command Prompt console type: CD %USERPROFILE%Desktop <- Hit ENTER
4. Type: mseinstall.exe /U
[Notice space between ..exe and /U]
5. Hit ENTER and this should uninstall Microsoft Security Essentials.
6. After the uninstall you can now attempt installation. It would be best that you restart your system first after the uninstall.
Alternate manual removal method #2 that you can try:
Note: Editing the registry incorrectly can cause your system to become unusable. Proceed with caution.
You may wish to backup the registry before proceeding - http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry
Use the Registry Editor to delete the following key from the Registry.
On XP, go to Start, then Run, and type:
Regedit.exe
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_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallMicrosoft Security Essentials
by expanding the branches in the left pane until the branch for Microsoft Security Essentials is displayed.
Right click 'Microsoft Security Essentials' in the left hand pane and select Delete.
Close the registry editor.
Then:
XP:
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 filesmicrosoft security clientbackupx86
Press Enter
Type:
setup.exe /x
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 FilesMicrosoft Security ClientBackupx86 (for 32 bit Windows)
CD C:Program FilesMicrosoft Security ClientBackupamd64 (for 64 bit Windows)
Press Enter
At the prompt (c:Program FilesMicrosoft Security ClientBackupx86> [or amd64>]), type:
Setup.exe /x
Press Enter
Setup will launch and will uninstall MSE
Special thanks to the following contributors to this article:
See Also: