How to Fix Windows Defender Not Working or Turned Off
The Problem
Windows Security warns that virus protection is off, or the Real-time protection toggle snaps back to disabled after you switch it on. Sometimes a removed antivirus left drivers behind. Sometimes malware turned Defender off deliberately.
Treat the second possibility seriously. Disabling Defender is one of the first things most malware families do. If protection switched itself off with no explanation, assume the machine may be compromised and follow the scan steps at the end.
Active infection suspected? Once Defender runs again, go through remove a virus or malware for a full offline scan.
Symptoms
- Yellow banner: Virus & threat protection is turned off.
- The Turn on button greyed out, or protection off again after every restart.
- This app has been turned off and isn't monitoring your PC in Security Center.
- Windows Security opens to a blank page, or will not open at all.
Step 1: Remove Conflicting Antivirus
Defender stands down automatically when another antivirus registers itself—and a partially uninstalled one leaves the registration behind while providing no protection at all. That is the worst of both worlds and it is extremely common.
- Settings → Apps → Installed apps → uninstall any Norton, McAfee, Avast, AVG, Kaspersky, or Bitdefender.
- Then run the vendor's dedicated removal tool—every major vendor publishes one, and a normal uninstall routinely leaves filter drivers behind.
- Restart before testing Defender again.
Check what Windows thinks is registered: Windows Security → Virus & threat protection → Manage providers.
Step 2: Turn It On, With Tamper Protection
- Settings → Privacy & security → Windows Security → Virus & threat protection.
- Manage settings → turn on Real-time protection.
- Turn on Tamper Protection in the same panel. This is the important one: it prevents software and scripts from switching Defender off again, and it must be enabled from the UI—it cannot be set by policy or registry from outside.
- Also enable Cloud-delivered protection and Automatic sample submission.
Step 3: Start the Services
Win + R→services.msc.- Confirm these are running with the correct startup type:
- Microsoft Defender Antivirus Service (
WinDefend) — Automatic - Microsoft Defender Antivirus Network Inspection Service — Manual
- Windows Security Service (
SecurityHealthService) — Automatic - Security Center (
wscsvc) — Automatic (Delayed Start)
- Microsoft Defender Antivirus Service (
- Start anything stopped, then restart the PC.
If WinDefend refuses to start, a policy or registry key is blocking it—Step 4.
Step 4: Check for Policy Blocks
Windows 11 Pro, Enterprise, Education
Win + R→gpedit.msc.- Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus.
- Set Turn off Microsoft Defender Antivirus to Not Configured.
- Check the Real-time Protection subfolder for Turn off real-time protection and set that to Not Configured too.
- Run
gpupdate /forceand restart.
Windows 11 Home — Registry
Before editing the registry: create a restore point first — create a system restore point.
Check HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender for a DisableAntiSpyware value set to 1 and delete it, then restart.
If Tamper Protection is on, Windows blocks this edit—which is the feature working correctly. Turn Tamper Protection off temporarily, make the change, then turn it back on.
Note: these keys being set on a home PC that no administrator configured is a strong indicator of malware or a "debloat" script. Treat it accordingly.
Step 5: Repair the Security App
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Then reopen Windows Security from Start. If the app was corrupt, the interface returns.
You can also reset the Defender platform itself from Terminal (Admin):
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -removedefinitions -dynamicsignatures
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate
Step 6: Repair System Files
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Then install all pending Windows updates—Defender's platform updates arrive through Windows Update, and a stalled update pipeline leaves it stale. See Windows Update stuck.
Step 7: Scan Properly Once It Works
Do not stop at "the warning went away."
- Virus & threat protection → Scan options → Full scan.
- Then run Microsoft Defender Antivirus (offline scan). It restarts the PC and scans before Windows loads, which catches the rootkits and persistent malware that disabled Defender in the first place.
- Check what is set to run at startup: remove malware startup entries and scheduled tasks.
Still Off After All This?
- S Mode, or a school or work MDM enrolment, can lock antivirus settings—check Settings → Accounts → Access work or school, and speak to the administrator.
- Corrupted install: an in-place repair keeps your files and applications — reinstall Windows without losing data.
Once Defender Is Healthy
Turn on the protections that are off by default:
- Controlled Folder Access — ransomware protection.
- Smart App Control and SmartScreen.
- Core Isolation and Memory Integrity.
And if Defender was switched off without your doing it, treat the PC as compromised: change your passwords from a different device, and review what to do after a remote access scam if anyone had remote control of it.
Related guides
How to Find and Remove Cryptominer Malware in Windows 11
Fans loud, CPU or GPU pinned when idle, and usage drops the moment you open Task Manager? That is a cryptominer. Here is how to find it and remove it for good.
Remove Malware Startup Entries and Scheduled Tasks
Malware you deleted keeps coming back? It left a scheduled task, service, or Run key behind. Here is how to find and clear every persistence point in Windows 11.
How to Detect and Remove a Rootkit in Windows 11
Malware that survives every scan and reinstall is hiding below Windows. Detect a rootkit or bootkit, remove it properly, and know when a clean install is the only answer.
Fix Microsoft Account Sign-In Problems in Windows 11
"We couldn't sign you in" or 0x80190001 when adding a Microsoft account? Fix the clock, the sign-in service, and the cached credentials behind it.
Fix "PIN Is Not Available" in Windows 11
Locked out by "Something happened and your PIN isn't available"? Sign in with your password, reset the Ngc folder, and set the PIN up again properly.