How to Fix the Windows Error Code: 0x80040154?


Error code 0x80040154 pops up on your computer without any type of warning message. Most of the users who have got this error have reported that they did not get any messages before the error appeared on their personal computers. This error pops up in an unexpected manner, which means there is no sign before this error appears. The error code 0x80040154 can pop up on your screen with an error message related to Microsoft Security Essentials. This error code can pop up on your screen while operating any apps like mail, Skype, calendar, etc. But, most of the users have reported that they have faced this error while operating Microsoft Security Essentials.

Error Code 0x80040154

Although many users have faced this error while using Microsoft Security Essentials, this type of error code 0x80040154 may pop up on your computer screen while using other applications like Mails, Skype, calendar, etc. This issue is mainly associated with Microsoft security essentials. Sometimes, the third-party antivirus installed in your computer can also be conflicting with Microsoft Security Essentials.

How to Fix the Windows Error Code: 0x80040154?

The root cause of the error is Microsoft Security Essentials. So, you should try uninstalling Microsoft security essentials. You can fix this error code 0x80040154 by following these solution methods.

1. You should run the system restore:

Firstly, you should do the system restore which may help you to fix this error. You can follow these steps to run the system restore.

Run control Panel

  • Go to the Run Window and type the control panel.
  • You should make your icon display category small.
  • Then, find an icon called a system with a computer screen icon and click on it.

system protection

  • You can see System Protection on the left side of the window. You should click on System Protection.
  • It may require administrator approval, you should give the administrator approval.

system restore for error code 0x80040154

  • After that, a new window will pop up. You can see the System restore option there, you should click on it.
  • After tapping on it, your system will start to restore.
  • After that, you should press on next.
  • Now, you should select the restore point and continue the process. You should click on next.
  • After that, you should click on finish.
  • Now, your computer will restart and take some time to restore completely. You should wait for it to finish.

Note: You can only proceed to System Restore if you have System Protection turned on. So, you should be sure that system protection is turned on in your pc to complete the system restoration process.

2. You should uninstall other anti-malware programs:

You should be sure that any of the anti-malware programs are not installed on your computer. If Microsoft Security Essentials and other third-party antivirus are installed at the same time, it can cause various malfunctions. You can uninstall your antivirus by following these easy steps.

  • At first, open the Run window by pressing Windows Key + R.
  • You should type the control panel in the open box of Run windows and hit enter.
  • Then, click on the programs and features.
  • You can see the list of applications. From there, you should right-click on the specific anti-virus which you are willing to uninstall.
  • After right-clicking, you should select uninstall.
  • Then, you should follow the instructions accordingly.

After completing the process, you should check if your problem is solved.

3. You should uninstall the Microsoft security essential:

If the virus/malware infection has changed its file structure of Microsoft Security Essentials then, you can uninstall and reinstall the Microsoft Security Essentials to solve the error. You can follow these simple steps to uninstall Microsoft Security Essentials.

  • You should go to the search bar and type Control Panel.
  • After that, you should select Control Panel from the top of the list of results.
  • After opening the Control panel, you should click on programs and features.
  • You can see the list of programs. And find Microsoft Security Essentials.
  • You should right-click on Microsoft Security Essentials and choose Uninstall.
  • Finally, you should follow the instructions accordingly.

4. You should Remove Microsoft Security Essentials with mseremoval.bat

You can remove the Microsoft Security Essentials with mseremoval.bat by following these steps.

  • Press Windows Key + R to open the Run Window.
  • You should type notepad in the open box and press Enter.
  • After opening the notepad, you should copy and paste these into Notepad.

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

EXIT

Notepad

  • You should type “mseremoval.bat” in the section Filename.
  • Then, select all files from the drop-down list in the section Save As Type.
  • Now, click on save and close the notepad.
  • You should select and go to the location where you have saved the Notepad file.
  • After that, right-click the file and click on run.

5. You should reset the system

The last but not the least option is to reset your Windows system. You should format the HDD to get rid of the software which is infected and you should also clean install new windows. You should not repair the windows if you repair your windows, your problem may not be solved. But before resetting your system, be sure to back up all your important files.

After completing the process, you should turn on the Windows firewall. You should check for the windows update. If a Windows update is available, you should update it.

Leave a Comment