How to Disable Microsoft Defender in Windows 11: Step-by-Step Guide in 2026

Key facts

  • Tamper Protection blocks permanent changes. You must turn it off first, or Group Policy and registry edits will be silently ignored.
  • The permanent route needs Windows 11 Pro, Enterprise, or Education. The Group Policy Editor (gpedit.msc) is not included in the Home edition, and even on Pro the policy is not guaranteed to stick: Windows updates can restore Defender, and the setting is ignored on PCs onboarded to Defender for Endpoint.
  • The temporary toggle turns itself back on. Real-time protection re-enables after a while or a restart, so it is only useful for short tasks.
  • Running with no antivirus is a high-risk setup. Only disable Defender permanently when another trusted antivirus is installed or the PC is isolated from the internet.

There are only a few good reasons to turn off Microsoft Defender: you are switching to a third-party antivirus that needs a clean install, you are testing software that Defender keeps flagging, or you are working on an isolated lab machine. This guide shows three routes: a safer exclusion for one trusted file, a temporary real-time protection toggle that turns itself back on, and a permanent Group Policy change for Pro and Enterprise editions. If you are unsure what switching protection off actually costs you, read our overview of the advantages and disadvantages of cybersecurity first.

  • Exclude one trusted file or folder instead of turning protection off
  • Turn off real-time protection temporarily in Windows Security
  • Disable Microsoft Defender permanently with Group Policy

Turn off real-time protection temporarily in Windows Security

This is the right choice for short tasks like installing a program Defender flags or running a specific executable. Protection switches back on by itself, so there is nothing to undo.

  1. Step 1: Open Windows Security from the Start menu (or the shield icon in the taskbar).
  2. Step 2: Click Virus & threat protection.
  3. Step 3: Under Virus & threat protection settings, click Manage settings.
  4. Step 4: Toggle Real-time protection to off. Confirm the prompt with Yes.
See also  How to Add or Remove Startup Programs in Windows 11 (3 Methods)

Windows will show a warning that your device may be vulnerable. That is expected. Finish your task promptly, then toggle real-time protection back on yourself rather than waiting for Windows to do it.

Windows Security settings page with toggles for real-time protection, cloud-delivered protection, automatic sample submission, and tamper protection
The Virus & threat protection settings page. Real-time protection is the temporary switch; Tamper Protection is the gatekeeper for permanent changes.

A safer fix first: exclude the file Defender keeps flagging

Most people who search for this guide do not actually need Defender off. They need one trusted file, folder, or program to stop being scanned. An exclusion does exactly that, and it works on every edition of Windows 11, including Home, with protection left on for everything else.

  1. Step 1: Open Windows Security > Virus & threat protection > Manage settings and scroll to Exclusions.
  2. Step 2: Click Add or remove exclusions, then Add an exclusion.
  3. Step 3: Pick File for one program or Folder for a whole app directory, then choose the item.
  4. Step 4: Run the program again. If it still gets blocked, the file itself may be the problem, and an exclusion is not the right answer.

Only exclude files you trust and can identify, because anything excluded is never scanned. Never exclude your Downloads folder, your Desktop, or a whole drive, and review the list every few months to remove exclusions for programs you no longer use.

Disable Microsoft Defender permanently with Group Policy

This route survives restarts and is meant for managed PCs or machines that will run a different antivirus. It only works on Windows 11 Pro, Enterprise, and Education editions. It is not a guarantee, though: on current Windows 11 builds, including 25H2, Windows can restore Defender after an update, and on a PC onboarded to Microsoft Defender for Endpoint the setting is ignored entirely. If the policy does not stick, installing a third-party antivirus is the reliable route, because Defender turns itself off when it detects one.

Warning: Disable Tamper Protection first (below), or Windows will silently block the policy change. Never leave a daily-use PC with no antivirus and Tamper Protection off.

  1. Step 1: Open Windows Security > Virus & threat protection > Manage settings and toggle Tamper Protection off. Confirm with Yes.
  2. Step 2: Press Win + R, type gpedit.msc, and press Enter to open the Local Group Policy Editor.
  3. Step 3: Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
  4. Step 4: Double-click Turn off Microsoft Defender Antivirus in the right pane.
  5. Step 5: Select Enabled (yes, enabling this policy disables the antivirus), click Apply, then OK.
  6. Step 6: Restart your PC. Defender will not run real-time protection after the reboot.
  7. Step 7: Check it worked. Open PowerShell as an administrator and run Get-MpComputerStatus | Select-Object IsTamperProtected, RealTimeProtectionEnabled. If RealTimeProtectionEnabled still reads True, the policy did not take effect, and the usual cause is Tamper Protection still being on or a managed policy overriding yours.
See also  How to Reset a COM Port in Windows for Free (2026 Guide)

To reverse this, return to the same policy, set it to Not Configured (or Disabled), reboot, and turn Tamper Protection back on immediately in Windows Security. If your PC is enrolled in Intune or Defender for Endpoint, expect centralized policies to override this local change; that is by design, and fleet-wide changes belong in your MDM console.

Group Policy Editor window with the Turn off Microsoft Defender Antivirus policy highlighted
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Enabling this policy turns Defender off.

What if you have Windows 11 Home?

Home does not include the Group Policy Editor, and there is no officially supported way to permanently kill Defender on it. Tamper Protection blocks the registry tricks that used to work, and many of them break with updates anyway. The supported path is simple: install a reputable third-party antivirus, and Defender steps aside into passive mode on its own. You get the protection you want without fighting the operating system.

Our Take

For most people, the temporary toggle is the only one they will ever need. Use it to get a flagged installer through, then turn protection back on. The permanent Group Policy route makes sense only when another antivirus is taking over or the machine is isolated. If you are removing preinstalled software and scripts keep getting flagged, our guide to removing bloatware from Windows 11 covers the safer workflow.

Do not disable Defender to make games run faster, to stop update notifications, or because a forum post told you antivirus is unnecessary. Real-time protection is the difference between a blocked threat and a silent infection, and understanding what that trade-off means is worth five minutes before you switch anything off. If you do not have a specific, controlled reason, leave Defender alone.

See also  How to Turn Off Advertising ID in Windows 11
David Coleman
Scroll to Top