Windows

How to Turn Off Windows Defender Completely in Windows

Learn five practical ways to disable Windows Defender in Windows, including temporary and permanent options, plus the risks and when each method makes sense.

Chris Anderson
Chris Anderson
How-To Writer  •  Oct 27, 2026  •  5 min read

Windows Defender, now called Microsoft Defender Antivirus, is built into Windows and protects your PC from malware in real time. In some situations, you may want to turn it off temporarily for testing, software installation, or troubleshooting conflicts with another security tool.

Because Microsoft Defender is tied closely to Windows security features, fully disabling it can be more complicated than simply flipping one switch. Some methods only pause protection for a short time, while others can reduce or stop it from running more permanently.

How to Turn Off Windows Defender Completely in Windows
Warning Disabling antivirus protection leaves your PC more exposed to malware. Only turn off Microsoft Defender if you have a clear reason and a safer alternative in place, such as another trusted antivirus solution.

1. Turn Off Real-Time Protection in Windows Security

This is the quickest method and usually enough if you only need Defender out of the way briefly. It stops active scanning, but Windows may turn it back on later, especially after a restart.

Advertisement
  1. Open Start and search for Windows Security.
  2. Select Virus & threat protection.
  3. Under Virus & threat protection settings, click Manage settings.
  4. Turn off Real-time protection.
  5. If needed, also turn off Cloud-delivered protection and Automatic sample submission for a short period while troubleshooting.
Why It Matters Real-time protection is the part of Defender that scans files and activity as they happen. Turning this off often helps if Defender is blocking an installer, patch, or test file.

2. Disable Tamper Protection First

On many systems, Tamper Protection prevents security settings from being changed. If you try to disable Defender and the option keeps turning itself back on, this setting may be the reason.

  1. Open Windows Security.
  2. Go to Virus & threat protection.
  3. Select Manage settings under Virus & threat protection settings.
  4. Find Tamper Protection and switch it off.
  5. Now try changing the Defender settings again.
Note The exact layout can vary a little between Windows 10 and Windows 11. In some cases, Tamper Protection may be controlled from your Microsoft account or work-managed security policy.

3. Use Group Policy to Disable Microsoft Defender Antivirus

If you use Windows Pro, Enterprise, or Education, Local Group Policy Editor gives you a more permanent way to stop Microsoft Defender Antivirus from running. This is useful for managed environments or advanced troubleshooting.

  1. Press Windows + R, type gpedit.msc, and press Enter.
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
  3. Open Turn off Microsoft Defender Antivirus.
  4. Set it to Enabled, then click Apply and OK.
  5. Restart the PC if the change does not take effect immediately.
Key Fact This method is generally not available on Windows Home without additional tools, because Home edition does not include the Local Group Policy Editor by default.
Warning If another antivirus program is not installed, disabling Defender through policy can leave the system with no active protection at all.

4. Disable Defender with the Registry Editor

Registry editing can also be used to prevent Defender from running, especially on editions where Group Policy is not available. This method should be used carefully, because incorrect registry changes can affect system stability.

  1. Press Windows + R, type regedit, and press Enter.
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  3. If the Windows Defender key does not exist, create it.
  4. Create a new DWORD (32-bit) Value named DisableAntiSpyware.
  5. Set its value to 1 and restart the PC.
Warning Only edit the registry if you are comfortable doing so. Back up the registry or create a restore point first so you can undo mistakes if needed.
Note On newer Windows versions, Microsoft may ignore some older registry-based disable methods or reverse them after updates. If the change does not stick, another method may be required.

5. Install a Third-Party Antivirus Program

In many cases, Windows will automatically reduce or disable Microsoft Defender Antivirus when it detects another active antivirus product. This is the cleanest way to replace Defender if you want a different security suite instead of no protection at all.

Best For Users who want to replace Microsoft Defender with another full-time security suite rather than manually fighting Windows settings.

What to Expect After Disabling Defender

Depending on the method you use, Defender may turn itself back on after a Windows update, a restart, or a security check. Temporary changes like Real-time protection are easiest to reverse, while policy or registry changes are more persistent but also riskier.

How to Re-Enable Windows Defender

If you only disabled Defender for testing, turn it back on as soon as possible.

  1. Open Windows Security.
  2. Go to Virus & threat protection.
  3. Open Manage settings.
  4. Turn Real-time protection back on.
  5. If you disabled Tamper Protection, re-enable it after you finish changing security settings.

Which Method Should You Use?

If you only need a short break from Defender, use Windows Security settings. If you need a more persistent change on a supported edition, Group Policy is usually cleaner than the registry. If you want Defender replaced entirely, installing another antivirus is often the simplest long-term approach.

For most people, the safest answer is to disable Defender only briefly or replace it with another security product rather than leaving the PC unprotected.

Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows