How to Fix Windows Defender Not Working or Turned Off
The Problem
Windows Security warns that virus protection is off, or the toggle snaps back to disabled after you turn it on. Sometimes a second antivirus left drivers behind; sometimes malware turned Defender off on purpose. A few minutes in Services and Settings beats reinstalling Windows on the first try.
Active infection suspected? After Defender runs again, follow remove virus or malware for a full offline scan.
Symptoms
- Yellow banner: Virus & threat protection is turned off.
- Turn on button grayed out or flips off after reboot.
- Third-party AV expired but still hooks into the system.
- This app has been turned off and isn't monitoring your PC in Security Center.
The Fix: Step-by-Step
Step 1: Remove Conflicting Antivirus
- Settings → Apps → Installed apps → uninstall old Norton, McAfee, Avast, Kaspersky, etc.
- Download the vendor's removal tool from their support site if uninstall leaves drivers (search "McAfee removal tool," "Norton remove and reinstall," etc.).
- Reboot before testing Defender again.
Step 2: Turn Defender On in Settings
- Settings → Privacy & security → Windows Security → Virus & threat protection.
- Under Virus & threat protection settings, click Manage settings → enable Real-time protection.
- Enable Tamper Protection so malware cannot silently disable Defender again.
Step 3: Start Required Services
Win + R→services.msc→ Enter.- Find Microsoft Defender Antivirus Service → Startup type: Automatic → Start.
- Also set Automatic and start:
- Windows Security Service
- Security Center (legacy name; still used for notifications)
- Reboot.
Step 4: Check Group Policy (Pro/Enterprise)
Win + R→gpedit.msc→ Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus.- Turn off Microsoft Defender Antivirus → Not Configured or Disabled (wording means "do not disable Defender").
- Run
gpupdate /forcein an admin terminal and reboot.
Home edition: skip gpedit; check Settings → Privacy & security → Windows Security → Open app for any enterprise enrollment message.
Step 5: Repair With PowerShell (Admin)
Open Terminal (Admin):
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Reopen Windows Security from the Start menu. If the app was corrupted, the UI returns.
Step 6: Run Defender Troubleshooter
Settings → System → Troubleshoot → Other troubleshooters → Windows Update (sometimes fixes Security components) or search Microsoft Support for Windows Security troubleshooter.
Step 7: Full Offline Scan Once Defender Works
Virus & threat protection → Scan options → Microsoft Defender Antivirus (offline scan). Malware that disabled Defender often gets caught here.
Still Off After All Steps?
- S Mode or school/work MDM policies may lock antivirus—contact the administrator.
- Stale or broken system components: repair Windows security tools with Windows Troubleshooter, then retry the steps above.
- Corrupted Windows install: reinstall without losing data as a last resort, then restore files from backup.