How to Turn Off Windows Defender Antivirus
In this article
Yes, you can turn off Windows Defender (now called Microsoft Defender Antivirus) in Windows 10 and 11, but it's temporary unless you disable it permanently via Group Policy or Registry. The quickest way is through the Windows Security app: go to Virus & threat protection > Manage settings and toggle off Real-time protection. However, Windows will automatically re-enable it after a short time (usually a few minutes) to keep your PC safe. This guide covers both temporary and permanent methods, plus what to do if you need it off for a specific program or game.
What You'll Need
- Administrator account on your Windows PC (most home PCs have this by default).
- For the permanent method: Windows 10 Pro, Enterprise, or Education (Group Policy) or any edition (Registry). Windows 10 Home lacks the Group Policy Editor, so use the Registry method.
- For the Group Policy or Registry method, you may need to restart your PC for changes to take effect.
Step-by-Step
Method 1: Temporarily Turn Off Real-Time Protection (All Windows 10/11)
- Click the Start button and type Windows Security, then press Enter.
- In the Windows Security window, click Virus & threat protection (shield icon on the left).
- Under the Virus & threat protection settings section, click Manage settings.
- Toggle off Real-time protection. A User Account Control prompt may appear – click Yes to confirm.
- Optional: Also toggle off Cloud-delivered protection and Automatic sample submission if you want to prevent Defender from re-enabling itself as quickly (though it still will eventually).
- Note: Real-time protection turns back on automatically after a short delay (usually 5–10 minutes) or when you restart your PC. If you need it off longer, use Method 2 or 3.
Method 2: Permanently Disable via Group Policy (Windows 10/11 Pro, Enterprise, Education)
- Press Win + R, type gpedit.msc, and press Enter. If you get an error, you're on Windows Home – use Method 3 instead.
- Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- On the right side, double-click Turn off Microsoft Defender Antivirus.
- Select Enabled, then click OK.
- Restart your PC. After restart, Windows Security will show a yellow warning that Defender is off – that's expected.
- To re-enable later, repeat steps and set it to Not Configured or Disabled, then restart.
Method 3: Permanently Disable via Registry (All Windows 10/11)
- Press Win + R, type regedit, and press Enter. Click Yes if prompted by User Account Control.
- Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
- If you don't see a Windows Defender key, right-click on Microsoft, select New > Key, and name it Windows Defender.
- With the Windows Defender key selected, right-click in the right pane and choose New > DWORD (32-bit) Value. Name it DisableAntiSpyware.
- Double-click the new value, set Value data to 1, and click OK.
- Close Registry Editor and restart your PC.
- To re-enable, change the value to 0 or delete the DisableAntiSpyware entry, then restart.
Method 4: Turn Off for a Specific App (Alternative)
- Instead of disabling Defender entirely, you can add an exclusion for a specific file, folder, or process.
- In Windows Security, go to Virus & threat protection > Manage settings > Exclusions > Add or remove exclusions.
- Click Add an exclusion and choose File, Folder, File type, or Process. This is safer than turning off Defender globally.
Common Mistakes
- Assuming the toggle stays off: Real-time protection auto-re-enables after a few minutes. If you need it off longer, use Group Policy or Registry.
- Using the wrong Group Policy path: The setting is under Microsoft Defender Antivirus, not under Windows Defender (which is a legacy path). Double-check the folder name.
- Forgetting to restart: Both Group Policy and Registry changes require a restart to fully take effect.
- Editing the registry without backup: Always back up the registry key before making changes. Right-click the key and select Export to save a .reg file.
- Disabling Defender permanently and forgetting: You'll stop receiving security updates and protection. Set a reminder to re-enable it after you finish whatever you needed it off for.
Tips
- If you're installing a third-party antivirus, Windows Defender will automatically turn off itself when the other AV is detected. You don't need to manually disable it – just install the other AV and Defender will step aside.
- For gaming or running a specific program, use the exclusion method instead of disabling Defender entirely. It's safer and you won't forget to turn it back on.
- If you use the Registry method, you can create a .reg file to quickly toggle it on/off. For example, a file with
"DisableAntiSpyware"=dword:00000001disables, anddword:00000000enables. - Windows Security will show a red or yellow banner when Defender is off. That's normal; don't panic.
Troubleshooting
If the toggle won't stay off or the Group Policy/Registry doesn't work
- Make sure you are logged in as an administrator. Right-click Start > Windows PowerShell (Admin) and try again.
- Check if another antivirus is installed – Windows Defender may be disabled automatically and the toggle greyed out. Go to Settings > Apps > Installed apps and see if any third-party AV is present.
- If the Group Policy setting says Enabled but Defender still runs, the policy might be overridden by a newer Defender version. In that case, use the Registry method (Method 3) which is more direct.
- If the Registry method doesn't work, ensure the key path is exactly HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender – not under HKEY_CURRENT_USER.
- If you still see Defender active after a restart, try running gpupdate /force in Command Prompt (Admin) to refresh Group Policy.
Frequently Asked Questions
Will Windows Defender turn back on automatically?
Yes, if you only toggle off Real-time protection, it will re-enable itself after a short time (usually 5–10 minutes) or after a restart. The Group Policy and Registry methods keep it off until you reverse them.
Is it safe to disable Windows Defender?
No, it leaves your PC vulnerable to malware and viruses. Only disable it temporarily for a specific reason, and make sure you have another antivirus or re-enable it as soon as possible.
Can I disable Windows Defender on Windows 10 Home?
Yes, you can use the Registry method (Method 3) because Home doesn't have the Group Policy Editor. The temporary toggle also works on Home.
What if I have another antivirus installed?
Windows Defender will usually disable itself automatically when it detects a third-party antivirus. You don't need to manually turn it off. If it's still running, check that the other AV is properly installed and active.
How do I re-enable Windows Defender after using the Registry method?
Open Registry Editor, go to the same key, change DisableAntiSpyware to 0 or delete the value, then restart your PC. Defender will start again.
Does disabling Defender affect Windows Update?
No, it only affects antivirus protection. Windows Update will continue to work normally.