If Windows Defender (Microsoft Defender Antivirus) is not working—showing errors, failing to start, or turning itself off—the fix usually involves resetting its settings, repairing the Windows Security app, or clearing corrupted policy entries. Below is a practical troubleshooting guide that walks through the most common causes and their solutions, from quick restarts to deeper registry checks.
Why Windows Defender Stops Working
Windows Defender is built into Windows 10 and 11, but several things can break it. The most frequent culprits are third-party antivirus software that disables Defender without fully uninstalling, corrupted system files, outdated Windows updates, or leftover group policy settings that turn off real-time protection. Less common but possible causes include tamper protection being enabled incorrectly, a conflicting security app, or a damaged Windows Security app package.
Understanding the root cause matters because a simple restart won’t fix a policy conflict. For example, if you previously installed another antivirus and removed it, its uninstaller might have left behind a registry key that tells Windows Defender to stay off. In that case, you need to manually delete that key or reinstall the other software and uninstall it properly.
Quick Checks Before Deep Troubleshooting
Start with the least invasive steps. Many “Defender not working” reports are resolved by these:
- Restart your PC. A temporary glitch in the Windows Security service often clears with a reboot.
- Check Windows Update. Go to Settings > Windows Update and install any pending updates. Defender relies on regular definition updates and platform updates.
- Verify the Windows Security app opens. Click the Start menu, type “Windows Security,” and open it. If it opens but shows red warnings, you’re in a better position than if it won’t open at all.
- Look for other security software. Open Settings > Apps > Installed apps and see if any third-party antivirus is still present. If so, uninstall it completely (use the vendor’s removal tool if available) and restart.
If these don’t help, move to the more targeted fixes below.
Repair and Reset the Windows Security App
Windows Security is a UWP (Universal Windows Platform) app, and like other apps, it can become corrupted. Windows 10 and 11 include a built-in repair tool that re-registers the app without affecting your files.
- Open Settings > Apps > Installed apps (Windows 11) or Apps > Apps & features (Windows 10).
- Scroll to find Windows Security (or search for it in the search box).
- Click the three-dot menu (Windows 11) or the app name (Windows 10) and select Advanced options.
- Click Repair. Wait for it to finish, then restart your PC.
- If that doesn’t work, go back to Advanced options and click Reset. This will reset the app’s data and settings to defaults.
After a reset, you may need to re-enable certain features like tamper protection or controlled folder access. The reset does not delete your personal files.
Run the Built-In Troubleshooters and SFC
Windows includes a few command-line tools that can fix corrupted system files, which are a common reason Defender fails.
First, run the System File Checker (SFC):
- Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
- Type
sfc /scannowand press Enter. This scans protected system files and repairs them. It can take 10-15 minutes. - After it finishes, restart and check if Defender works.
If SFC finds issues but can’t fix them, run DISM (Deployment Imaging Service and Management Tool):
- In the same admin terminal, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. - Wait for the operation to complete (it may take several minutes), then restart and run SFC again.
These tools are safe and won’t touch your personal data. They only repair Windows system files.
Check Group Policy and Registry Settings
If you’re on Windows Pro, Enterprise, or Education, Group Policy can force Defender off. Even on Home editions, a leftover registry key can do the same. This is a common cause after uninstalling third-party antivirus.
To check Group Policy (Pro and above only):
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Look for a policy named Turn off Microsoft Defender Antivirus. If it’s set to Enabled, change it to Not Configured or Disabled.
- Also check Real-time Protection subfolder for any “Turn off” policies.
- Close and run
gpupdate /forcein an admin command prompt.
For the registry (works on all editions):
- Press Win + R, type
regedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. - If you see a value named DisableAntiSpyware with a value of 1, right-click it and delete it (or set it to 0).
- Also check the Real-Time Protection subkey (if present) for DisableRealtimeMonitoring and delete or set it to 0.
- Close the registry and restart.
Be careful when editing the registry—always back it up first (File > Export). Deleting the wrong key can cause system instability.
Reinstall Windows Defender via PowerShell
If the Windows Security app is still broken, you can re-register it using PowerShell. This is a more advanced step but often fixes persistent corruption.
- Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
- Copy and paste this command and press Enter:
Get-AppxPackage Microsoft.Windows.SecHealthUI | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
- Wait for it to complete. It may take a minute or two.
- Restart your PC and open Windows Security again.
If you get an error, make sure you’re running as administrator and that your Windows account has permission to modify system apps. This command only re-registers the Windows Security interface, not the underlying Defender service, so it’s safe.
When All Else Fails: Use the Microsoft Safety Scanner
If Defender still won’t start, you can’t leave your PC unprotected. Microsoft offers a standalone tool called the Microsoft Safety Scanner that can run a one-time virus scan without needing the full Defender service. It’s not a replacement for real-time protection, but it can clean a system that’s already infected (which might be why Defender is failing).
- Download it from Microsoft’s official website (search “Microsoft Safety Scanner”).
- Run it as administrator. It will download the latest definitions and scan your system.
- It’s valid for 10 days per download, so you may need to re-download it if you use it later.
After cleaning, try the repair steps again. If Defender still fails, consider using a reputable third-party antivirus as a temporary or permanent replacement, but make sure to uninstall it properly if you later want Defender back.
Frequently Asked Questions
Why does Windows Defender keep turning off by itself?
This usually happens because another antivirus program is installed and has taken over as the primary security provider. Windows automatically disables Defender to avoid conflicts. Check Installed apps for any third-party security software and uninstall it. If none exists, check the registry key DisableAntiSpyware (as described above) which may have been left behind by a previous uninstall.
Can I fix Windows Defender without losing my files?
Yes. All the steps in this guide (repair, reset, SFC, registry edits) are designed to fix the security app without touching your personal files. The only thing that gets reset is Windows Security’s own settings, like which folders are excluded from scans. Your documents, photos, and other data remain untouched.
What if Windows Defender is not showing up in Settings?
If the Windows Security icon is missing from Settings, it’s likely the app is unregistered or corrupted. Use the PowerShell re-registration command in the section above. If that doesn’t work, run the SFC and DISM tools to repair the Windows image. In rare cases, a full Windows update repair install (using the “Repair install” option in Windows Update) may be needed.
Is it safe to edit the registry to fix Defender?
Editing the registry is safe if you only delete or modify the specific keys mentioned and you back up the registry first. Incorrect changes to other keys can cause system problems. If you’re not comfortable, use the Group Policy editor (if available) or seek help from Microsoft Support. Always export a backup before making any changes.
Will resetting Windows Security delete my antivirus history?
Yes, resetting the Windows Security app will clear its detection history and your custom settings (like excluded files). It won’t remove your personal files, but you’ll lose the record of past threats and any custom scan exclusions. After a reset, you’ll need to reconfigure those settings.
Do I need a third-party antivirus if Windows Defender is fixed?
Windows Defender is a solid baseline for most home users, especially with regular Windows updates. If you’re a typical user who doesn’t download risky files, it’s sufficient. However, if you’re a power user or want extra layers like VPN or password manager, a third-party suite can add value, but it’s not required for basic protection.
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
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Factory Reset on Samsung Galaxy: What It Erases