How to Turn Off Windows Defender Completely
In this article
Yes, you can turn off Windows Defender (Microsoft Defender Antivirus) completely, but it requires more than flipping a single switch. The built-in app lets you disable real-time protection temporarily, but for a permanent full shutdown, you need to use Group Policy or the Registry. This guide covers both methods, plus how to re-enable it when you're done. Note: disabling Defender leaves your PC unprotected, so only do this if you have another antivirus installed or you fully understand the risk.
What You'll Need
- Windows 10 or 11 (Pro, Enterprise, or Education editions for Group Policy; Home edition can use Registry)
- Administrator account access
- Another antivirus installed (recommended, but not required)
Step-by-Step
Method 1: Temporary Disable (Built-in Toggle)
- Open Windows Security by clicking the shield icon in the system tray or searching for it in the Start menu.
- Go to Virus & threat protection.
- Under “Virus & threat protection settings,” click Manage settings.
- Toggle off Real-time protection. Windows will warn you that this leaves your device vulnerable.
- Note: This only lasts until the next restart or after a few hours. Windows automatically re-enables it for safety.
Method 2: Permanent Disable via Group Policy (Pro/Enterprise/Education)
- Press Win + R, type
gpedit.msc, and press Enter. (If you get an error, you're on Home edition—use Method 3.) - Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Double-click Turn off Microsoft Defender Antivirus.
- Set it to Enabled, then click OK.
- Restart your PC. Defender will now be completely off.
- To re-enable, go back and set it to Not Configured or Disabled, then restart.
Method 3: Permanent Disable via Registry (All Editions, including Home)
- Press Win + R, type
regedit, and press Enter. Click Yes if prompted by UAC. - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender. - If the Windows Defender key doesn't exist, right-click on Microsoft, select New > Key, and name it
Windows Defender. - Right-click on the Windows Defender key, select New > DWORD (32-bit) Value.
- Name it
DisableAntiSpyware. - Double-click the new value, set it to
1, and click OK. - Close Registry Editor and restart your PC.
- To re-enable, change the value to
0or delete theDisableAntiSpywareentry, then restart.
Common Mistakes
- Only toggling real-time protection: This is temporary and resets automatically. It does not disable the whole Defender suite.
- Using the wrong Registry path: Some guides suggest
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender—that won't work. You must use the Policies path. - Not restarting: The changes don't take effect until you restart Windows.
- Forgetting to re-enable before uninstalling third-party antivirus: If you remove your other AV while Defender is off, you'll have no protection at all.
Tips
- Before disabling, make sure your alternative antivirus is fully installed and active. Windows will often automatically disable Defender when it detects another AV, so you may not need to do this manually.
- If you're troubleshooting a specific issue, try adding an exclusion in Defender instead of turning it off completely—this keeps you protected while allowing the problematic app to run.
- After disabling, check the Windows Security app—it may show a red or yellow warning. That's expected.
- Keep a note of the steps you used so you can reverse them easily later.
Troubleshooting
If Defender still runs after following the steps:
- Make sure you restarted your PC. If you did, verify the Registry value is still set to
1and that you used the correct path. - On Windows 10/11, some updates may override the Registry setting. Re-apply the value after a major update.
- If you're using Group Policy, check that the policy is set to Enabled and not Not Configured.
If you can't find the Group Policy editor:
- You're likely on Windows Home—use the Registry method instead.
If Windows Security shows an error or won't open:
- Restart the Windows Security service: open Services (Win + R, type
services.msc), find Windows Defender Antivirus Service, right-click and select Restart.
If you want to re-enable Defender and it won't turn back on:
- Delete the
DisableAntiSpywareregistry value or set it to0, then restart. - If using Group Policy, set it to Not Configured and restart.
Frequently Asked Questions
Is it safe to turn off Windows Defender?
No, it leaves your PC vulnerable to malware. Only do it if you have another active antivirus or you're testing in a controlled environment.
Will Windows automatically re-enable Defender?
Yes, the built-in toggle re-enables after a restart or after a few hours. The Group Policy and Registry methods keep it off until you reverse them, but Windows updates may occasionally override them.
Can I turn off Defender on Windows Home without Registry?
No, Home edition lacks Group Policy. The Registry method is the only permanent way for Home users.
Does disabling Defender also disable Windows Firewall?
No, these are separate. Windows Firewall remains on unless you disable it separately.
What if I don't have another antivirus?
It's strongly recommended to install one before disabling Defender. Otherwise, your PC is unprotected.
Can I turn off Defender for a specific folder or app instead?
Yes, you can add exclusions in Windows Security under Virus & threat protection settings > Exclusions. This is safer than turning off Defender entirely.