Fix Windows Defender Not Working in Windows 11
In this article
If Windows Defender (Microsoft Defender Antivirus) is not working on Windows 11—for example, it won't open, shows an error, or keeps turning off—the quickest fix is usually to run the built-in troubleshooters, then restart the Security Center service, and finally re-register the Defender app via PowerShell. This guide walks you through those steps in order, from simplest to most thorough. You'll need administrator access to your PC, and you should be signed in with a Microsoft account (though a local admin account works too).
What You'll Need
- Administrator account on Windows 11
- Internet connection (for updates and online scans)
- About 15–30 minutes of time
Step-by-Step
- Restart your PC. This clears temporary glitches that often stop Defender from launching. Save your work and choose Restart from the Start menu.
- Run the Windows Update troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters. Find “Windows Update” and click Run. Follow the prompts. This fixes corrupted update files that can break Defender.
- Run the “System Maintenance” troubleshooter. In the same list, find “System Maintenance” (if present) and run it. It cleans up leftover files and repairs system issues.
- Check if Defender is turned off by policy. Open Settings > Privacy & security > Windows Security. If you see a yellow warning banner, click “Turn on” next to each protection area. If the banner says “managed by your organization,” skip to step 7—that means a group policy or third-party antivirus is controlling it.
- Restart the Security Center service. Press Win + R, type
services.msc, and press Enter. Scroll to Security Center. Right-click it and choose Restart. If it's not running, right-click and choose Start. - Run the Windows Security app itself. Open the Start menu, type “Windows Security,” and launch it. If it opens but shows errors, click each shield icon (Virus & threat protection, Account protection, etc.) and click “Turn on” or “Fix” if available.
- Re-register the Windows Security app via PowerShell. Right-click the Start button and select Windows Terminal (Admin) or PowerShell (Admin). Run this command and press Enter:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Wait for it to finish, then restart your PC. - Check for third-party antivirus conflicts. If you have another antivirus (like McAfee, Norton, or Avast), uninstall it completely using its official removal tool, then restart. Windows Defender will re-enable automatically.
- Run SFC and DISM scans. In the same admin terminal, run
sfc /scannowand press Enter. After it finishes, runDISM /Online /Cleanup-Image /RestoreHealth. Restart when done. - Reset Windows Security via Settings. Go to Settings > Apps > Installed apps. Search for “Windows Security.” Click the three-dot menu and choose Advanced options. Click Reset (this won't delete your files, but it resets the app's settings).
- If all else fails, perform a Windows Repair Install. Download the Windows 11 Installation Assistant from Microsoft's official website, run it, and choose “Keep personal files and apps.” This reinstalls Windows while preserving your data. It's the last resort before a full reset.
Common Mistakes
- Skipping the restart. Many Defender issues are temporary; a reboot fixes them instantly.
- Running the re-register command without admin rights. The PowerShell command only works in an elevated (admin) window.
- Leaving a third-party antivirus installed. Even if it's disabled, it can still block Defender. Uninstall it completely.
- Editing the registry blindly. Some online guides tell you to delete Defender-related registry keys. That can break Windows Security permanently. Avoid registry edits unless you're an expert.
Tips
- Keep Windows Update current—Defender definitions update automatically through it.
- Use the Windows Security app's “Virus & threat protection” to run a quick scan after fixing it.
- If you're on a work or school PC, group policies may intentionally disable Defender. Check with your IT admin before trying fixes.
- Create a system restore point before making major changes (like the repair install).
Troubleshooting
If the steps above didn't work, try these additional checks:
- Check the “Windows Security” service status. In
services.msc, look for “Windows Security” (not Security Center). If it's disabled, right-click, choose Properties, set Startup type to “Automatic,” and start it. - Look for error codes. If you see a specific error like “0x800704ec,” it usually means Defender is disabled by policy. Run
gpedit.msc(only on Pro/Enterprise) and navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Set “Turn off Microsoft Defender Antivirus” to “Not Configured.” - Use the Microsoft Safety Scanner. Download it from Microsoft's official site and run a full scan. It can remove malware that's interfering with Defender.
- Check for corrupted system files again. Run
sfc /scannowa second time after a restart—some repairs require a reboot to complete. - If the Windows Security app won't open at all, try opening it via the Start menu search. If it still fails, the re-register command in step 7 is your best bet—run it twice if needed.
Frequently Asked Questions
Why does Windows Defender keep turning off on its own?
This usually happens because another antivirus is installed and taking over, or a group policy is disabling it. Uninstall third-party antivirus, then check the policy settings as described above.
Can I use Windows Defender alongside another antivirus?
No. Windows Defender automatically disables itself when another real-time antivirus is active. You can only run one at a time.
Will resetting Windows Security delete my files?
No. The Reset option in Settings > Apps only resets the app's settings and data, not your personal files.
How do I know if Windows Defender is actually working?
Open Windows Security and look for green checkmarks next to each protection area. You can also run a quick scan from the “Virus & threat protection” tab—if it completes, Defender is functional.
Is it safe to use the PowerShell re-register command?
Yes, the command Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage is an official Microsoft command. It only resets the Windows Security app, not your system.
What if I'm on Windows 11 Home and don't have gpedit.msc?
Home edition lacks the Group Policy Editor. Instead, check the registry key HKLM\SOFTWARE\Policies\Microsoft\Windows Defender. If it contains a value named “DisableAntiSpyware,” delete it (back up first). Then restart.