If Microsoft Defender is throwing an error, the fix usually involves resetting the app, checking for corrupted files, or adjusting group policy settings. This guide walks you through the most common error codes and their solutions, from simple restarts to deeper system repairs.
What Causes Microsoft Defender Errors?
Microsoft Defender (formerly Windows Defender) can fail for several reasons. The most frequent culprits are:
- Corrupted system files – A damaged Windows component can prevent Defender from launching.
- Conflicting third-party antivirus – Another security suite may disable Defender, causing error 0x8050800C or similar.
- Outdated Windows or Defender definitions – Missing updates can lead to glitches.
- Tampered Group Policy or Registry – Malware or manual changes can disable Defender.
- Service failures – The Windows Security Center service or Defender service may be stopped.
Identifying the exact error code is the first step, as different codes point to different fixes.
Common Error Codes and Their Meanings
Here are some of the most common Microsoft Defender error codes you might see:
- 0x800704ec – This usually means the app is disabled by policy or another antivirus is running.
- 0x8050800C – Often indicates that Defender is turned off or its service is not running.
- 0x800106ba – The Defender service cannot be started, often due to system file corruption.
- 0x80073b19 – This can appear when the Windows Security app itself fails to update or load.
- 0x80070005 – Access denied, usually a permissions issue in the registry.
If your error code isn’t listed, the general steps below still apply to most issues.
Step-by-Step Fixes for Microsoft Defender Errors
Start with these solutions in order, from least to most invasive. Always restart your PC after each step to see if the problem is resolved.
1. Restart the Windows Security Service
- Press Win + R, type
services.msc, and press Enter. - Scroll to Security Center and Windows Defender Antivirus Service (if listed).
- Right-click each and select Restart. If the option is grayed out, set the startup type to Automatic and start it.
- Close the window and open Windows Security to test.
2. Run the Windows Security Troubleshooter
- Go to Settings > System > Troubleshoot > Other troubleshooters.
- Find Windows Security and click Run.
- Follow the prompts; the tool will attempt to detect and fix issues automatically.
3. Repair or Reset the Windows Security App
- Open Settings > Apps > Installed apps.
- Search for Windows Security, click the three dots, and choose Advanced options.
- Click Repair first. If that doesn’t help, click Reset (this will reset the app’s settings but not your files).
4. Run System File Checker and DISM
- Open Command Prompt as administrator (search
cmd, right-click, and select Run as administrator). - Type
sfc /scannowand press Enter. Wait for the scan to complete. - Then run
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Restart your PC after both complete.
5. Check for Conflicting Antivirus Software
If you have a third-party antivirus installed, uninstall it completely using its official removal tool, then restart. Windows should automatically re-enable Defender. If not, go to Windows Security > Virus & threat protection and click Manage settings to turn on real-time protection.
6. Use PowerShell to Re-Register Defender
- Open PowerShell as administrator.
- Run the following command:
Get-AppxPackage Microsoft.Windows.SecHealthUI | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
- Restart your computer.
7. Edit Group Policy (Pro/Enterprise only)
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Double-click Turn off Microsoft Defender Antivirus and set it to Not Configured.
- Click OK and restart.
When to Use the Windows Security App vs. Command Line
The Windows Security app is the user-friendly interface for most tasks like running quick scans or checking protection history. The command line (via PowerShell or Command Prompt) is more powerful and can fix underlying issues that the GUI cannot. For example, you can run a full offline scan using MpCmdRun.exe -Scan -ScanType 2 from an elevated command prompt. Use the GUI for everyday checks, and the command line for troubleshooting stubborn errors.
How to Prevent Future Errors
- Keep Windows Update enabled to receive Defender definition updates automatically.
- Avoid installing multiple antivirus programs simultaneously.
- Periodically run
sfc /scannowto catch file corruption early. - Don’t disable Defender via registry or group policy unless you have a specific reason and know how to re-enable it.
- If you use a third-party antivirus, make sure it’s compatible with your Windows version.
Frequently Asked Questions
Why does Microsoft Defender keep turning off?
This is often caused by another antivirus program taking over, or a group policy setting that disables it. Check if you have a third-party security suite installed and uninstall it. Also, verify that your Windows is activated and up to date, as Defender can turn off if the OS isn’t genuine.
Can I reset Microsoft Defender without losing my settings?
Yes, using the Repair option in Settings > Apps > Windows Security > Advanced options will keep your settings. The Reset option will restore default settings, which usually fixes errors but removes any custom exclusions or preferences.
Is it safe to use a third-party antivirus with Microsoft Defender?
No, running two real-time antivirus programs can cause conflicts and performance issues. Windows automatically disables Defender when another antivirus is active. If you want to switch, uninstall the third-party one first, then Defender will re-enable.
What should I do if none of these fixes work?
If you’ve tried all the steps and the error persists, you may need to perform a Windows repair installation using the Media Creation Tool, or reset your PC (keeping your files). Before doing that, ensure your data is backed up. Also, check the Microsoft Support website for your specific error code, as some issues require a dedicated hotfix.
Does resetting Windows Security delete my files?
No, resetting the Windows Security app only resets its settings and does not delete personal files. However, it will remove any exclusions you’ve set and revert to default protection settings.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix 0x80070422 on Windows Server (Step-by-Step)
- Google Chrome Helper: What It Is & How to Disable
- How to Troubleshoot a Malfunctioning Driver on Windows
- How to Create Folders in Microsoft Outlook
- Fix Status Range List Conflict 0xc0000282 in Windows
- Fix Software Not Uninstalling on Windows 10