Technical Level
Summary
This article collects a number of solutions for uninstalling Microsoft Security Essentials.
Details
- Microsoft Security Client Folder
- Microsoft Security Client Uninstall Command Download
- Microsoft Security Client Uninstall Command Line
- Microsoft Security Client Uninstall
Next, right-click the Start button, and choose Command Prompt (Admin). Paste the following line into the Command Prompt window, and press Enter: “C: Program Files Microsoft Security Client setup.exe” /x /disableoslimit. If a generic box pops up with a question about uninstalling, just click OK. 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. 'C: Program Files Microsoft Security Client Setup.exe' /x /s Very simple, very fast. This is definitely the way to uninstall Security Essentials in a managed services environment. 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.
: Intermediate How to uninstall Microsoft Security Essentials using Command Line (CMD)? How to uninstall Microsoft Security Essentials using a script? SOLUTION: Uninstall using command line. 1.) Open a command prompt in administrator mode. 2.) Copy and paste the following command.
Microsoft Security Client Folder
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.
b. Click the below link and select Run Now button.
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.
***********************************************************
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
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.
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 Free internet service software.
Press Enter
Setup will launch and will uninstall MSE
Special thanks to the following contributors to this article:
See Also:
-->Applies to: Intune in the classic portal |
---|
Looking for documentation about Intune in the Azure portal? Go here. |
Note
You can use Microsoft Intune to manage Windows PCs either as mobile devices with mobile device management (MDM) or as computers with the Intune software client as described below. However, Microsoft recommends that customers use the MDM management solution whenever possible. For more information see Compare managing Windows PCs as computers or mobile devices
Windows PCs can be enrolled by installing the Intune client software. The Intune client software can be installed by using the following methods:
- By the IT admin, using one of these methods: manual installation, Group Policy, or installation included in a disk image
- By end users, who manually install the client software
The Intune client software contains the minimum software necessary to enroll the PC in Intune management. After a PC has been enrolled, the Intune client software then downloads the full client software required for PC management.
This series of downloads reduces the impact on the network's bandwidth and minimizes the time required to initially enroll the PC in Intune. It also ensures that the client has the most recent software available after the second download has finished.
One Intune license allows the installation of the Intune client software on up to five PCs.
Download the Intune client software
All methods, except those in which users install the Intune client software themselves, require that IT admins download the software first so that it can be subsequently deployed to end users.
- In the Microsoft Intune administration console, click Admin > Client Software Download.
- On the Client Software Download page, click Download Client Software. Then save the Microsoft_Intune_Setup.zip package that contains the software to a secure location on your network.The Intune client software installation package contains unique and specific information, which is available through an embedded certificate, about your account. If unauthorized users gain access to the installation package, they can enroll PCs to the account that is represented by its embedded certificate and might gain access to company resources.
- Extract the contents of the installation package to the secure location on your network.ImportantDo not rename or remove the ACCOUNTCERT file that is extracted, or the client software installation will fail.
Deploy the client software manually
Microsoft Security Client Uninstall Command Download
On the computer(s) on which the client software is going to be installed, go to the folder where the client software installation files are located. Then run Microsoft_Intune_Setup.exe to install the client software.
Note
The status of the installation is displayed when you hover over the icon in the taskbar on the client PC.
Deploy the client software by using Group Policy
- In the folder that contains the files Microsoft_Intune_Setup.exe and MicrosoftIntune.accountcert, run the following command to extract the Windows Installer-based installation programs for 32-bit and 64-bit computers:
- Copy the Microsoft_Intune_x86.msi file, the Microsoft_Intune_x64.msi file, and the MicrosoftIntune.accountcert file to a network location that can be accessed by all computers on which the client software is going to be installed.ImportantDo not separate or rename the files or the client software installation will fail.
- Use Group Policy to deploy the software to computers on your network.For more information about how to use Group Policy to automatically deploy software, see Group Policy for Beginners.
Deploy the client software as part of an image
Microsoft Security Client Uninstall Command Line
You can deploy the Intune client software to computers as part of an operating system image by using the following procedure as a guide:
- Copy the client installation files, Microsoft_Intune_Setup.exe and MicrosoftIntune.accountcert, to the %Systemdrive%TempMicrosoft_Intune_Setup folder on the reference computer.
- Create the WindowsIntuneEnrollPending registry entry by adding the following command to the SetupComplete.cmd script:
- Add the following command to setupcomplete.cmd to run the enrollment package with the /PrepareEnroll command-line argument:TipThe SetupComplete.cmd script enables Windows Setup to make modifications to the system before a user signs on. The /PrepareEnroll command-line argument prepares a targeted computer to be automatically enrolled in Intune after Windows Setup finishes.Top powerpoint templates free. Free Powerpoint TemplatesDownload the best free Powerpoint templates to create modern presentations. Thousands of PPT templates easy to edit with high-quality slides, created by top designers around the world. Each free presentation is unique, which is why there are so many uniquely designed presentation templates to express each person's creativity and style. All the templates are multi-purpose, which means that they can be used for any presentation project, whether it be for school projects, company report, lectures, exhibitions, etc.
- Put SetupComplete.cmd in the %Windir%SetupScripts folder on the reference computer.
- Capture an image of the reference computer and then deploy this to targeted computers.When the targeted computer restarts at the completion of Windows Setup, the WindowsIntuneEnrollPending registry key is created. The enrollment package checks to see if the computer is enrolled. If the computer is enrolled, no further action is taken. If the computer is not enrolled, the enrollment package creates a Microsoft Intune Automatic Enrollment Task.When the automatic enrollment task runs at the next scheduled time, it checks the existence of the WindowsIntuneEnrollPending registry value, and it tries to enroll the targeted PC in Intune. If the enrollment fails for any reason, the enrollment is retried the next time the task runs. The retries continue for a month.The Intune Automatic Enrollment Task, the WindowsIntuneEnrollPending registry value, and the account certificate are deleted from the targeted computer either when the enrollment is successful or after a month (whichever comes first).
Instruct users to self-enroll
Users install the Intune client software by going to the Company Portal website. The exact information that users see in the web portal varies, depending on your account's MDM Authority and the OS platform/version of the user's PC.
If users haven't been assigned an Intune license or if the organization's MDM Authority hasn't been set to Intune, users aren't shown any options to enroll.
If users have been assigned an Intune license, and the organization's MDM Authority has been set to Intune:
- Windows 7 or Windows 8 PC users are shown ONLY the option to enroll to Intune by downloading and installing the PC client software that is unique to their organization.
- Windows 10 or Windows 8.1 PC users are shown two enrollment options:
- Enroll PC as a mobile device: Users choose the Find Out How to Enroll button and are taken to instructions on how to enroll their PC as a mobile device. This button is prominently displayed, because MDM enrollment is considered to be the default and preferred enrollment option. However, the MDM option is not applicable to this topic, which covers only the client software installation.
- Enroll PC using the Intune client software: You'll need to tell your users to select the Click here to download it link, which takes them through the client software installation.
The following table summarizes the options.
The following screenshots show what users see as they enroll their devices using the software client.
Users are first prompted to identify or to enroll their device.
To have your users install the PC client software, you'll need to tell them to select the Click here to download it link, which enables users to download the PC client software and takes them through the installation process. The Find out how to enroll button takes users to documentation about how to enroll using MDM enrollment, which is not relevant to these software client instructions.
Microsoft Security Client Uninstall
When users click the link, they see a Download Software button, which they select to start the PC client software installation.
Users are then asked to sign in with their corporate credentials.
Users are taken to the Welcome page for the installation.
Users choose Next, and the installation starts.
When the installation completes, users choose Finish.
If users try to enroll their PC as a mobile device after having already enrolled using the Intune PC client software, they see the following error screen.
Monitor and validate successful client deployment
Use one of the following procedures to help you monitor and validate successful client deployment.
To verify the installation of the client software from the Microsoft Intune administrator console
- In the Microsoft Intune administration console, click Groups > All Devices > All Computers.
- In the list, find the computers that are communicating with Intune, or search for a specific managed computer by typing the computer name (or any part of the name) in the Search devices box.
- Examine the status of the computer in the bottom pane of the console. Resolve any errors.
To create a computer inventory report to display all enrolled computers
- In the Microsoft Intune administration console, click Reports > Computer Inventory Reports.
- On the Create New Report page, leave the default values in all fields (unless you want to apply filters), and then click View Report.
- The Computer Inventory Report page opens in a new window that displays all computers that are successfully enrolled in Intune.TipClick any column heading in the report to sort the list by the contents of that column.
Uninstall the Windows client software
There are two ways to unenroll the Windows client software:
- From the Intune admin console (recommended method)
- 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 1:
Method 2 Note that all of these agents are installed on every SKU of Windows:
Tip
Client unenrollment will leave a stale server-side record for the affected client. The unenrollment process is asynchronous, and there are nine agents to uninstall, so it may take up to 30 mins to complete.
Check the unenrollment status
Check '%ProgramFiles%MicrosoftOnlineManagement' and ensure that only the following directories are shown on the left:
- AgentInstaller
- Logs
- Updates
- Common
Remove the OnlineManagement folder
The unenrollment process does not remove the OnlineManagement folder. Wait 30 minutes after the uninstall, and then run this command. If you run it too soon, the uninstall could be left in an unknown state. To remove the folder, start an elevated prompt and run: