How to Disable Windows Defender on Windows 11 and 10

Tushar Thakur Written by Tushar Thakur Tushar Thakur Tushar Thakur Founder 82 articles Tushar Thakur founded XtendedView in 2011 while studying Electronics and Instrumentation Engineering in Mumbai, and in 2013 IndiBlogger named it the best blog in its gadgets category. He has spent more than a decade building tech blogs and working on search optimisation and online marketing, and co-founded the agency WebGeeksMedia. He sets XtendedView's editorial direction and writes about Windows customisation, Android tweaks and the gadgets he tests himself. View profile
Supriya Gharat Reviewed by Supriya Gharat Supriya Gharat Supriya Gharat Editor in Chief 264 articles Supriya is XtendedView's Editor in Chief. She leads a research team of five and reviews the articles the site publishes, with a focus on tracing every figure to the organisation that first reported it. She oversees the statistics coverage across AI, cybersecurity, gaming, internet platforms and consumer technology. Away from work, she prefers travel and quiet, focused spaces that suit her analytical way of working. View profile
Fact checked by Editorial Team Editorial Team 6 articles Articles under the Editorial Team byline are researched and written by XtendedView staff, then reviewed by an editor before publishing. Each one follows our Fact-Check Policy, and statistics pages follow our Statistics Methodology. View profile
Research by Research Desk Research Desk Research Desk is XtendedView's team of researchers. They gather the figures behind every statistics article using advanced in-house research tools, trace each number to the organisation that first published it, and hand the sourced data to the writer and the editor who reviews it. View profile
How to Disable Windows Defender on Windows 11 and 10
Cited by +86 more

Share

This article has been updated 2 times. Last updated on

  • Updated the guide for Windows 11 and Windows 10, with Tamper Protection as the first step and the Windows Security real-time toggle as the second.
  • Replaced the DisableAntiSpyware registry method, which Microsoft says it removed and which tamper protection blocks, and explained why Group Policy changes can fail silently.
  • Added exclusions, a Get-MpComputerStatus check, the Windows Server uninstall command, and AV-TEST protection scores of 6 from February 2025 to August 2026.

To disable Windows Defender, start in Windows Security. It lets you turn off Microsoft Defender Antivirus real-time protection temporarily, but real-time protection will turn back on automatically after a short while. If tamper protection is turned on, you need to turn it off before you can turn real-time protection off. Microsoft also says it removed the DisableAntiSpyware and DisableAntivirus registry keys once used to disable Defender. On Windows 10 and Windows 11, Defender switches to disabled mode automatically when a non-Microsoft antivirus is the primary solution.

How to Disable Windows Defender on Windows 11 and 10

That leaves three honest options: pause it for a task, exclude the file it keeps flagging, or replace it with another antivirus. For context, AV-TEST gave Microsoft Defender Antivirus (Consumer) 4.18 a protection score of 6 in its August 2026 round. The five steps below work the same on both versions of Windows, with one Windows 11 caveat in Step 3.

Before you start: If tamper protection is on and you’re an administrator, you can still change these settings in the Windows Security app. Other apps can’t change them.

Key Takeaways

  • AV-TEST scored Microsoft Defender Antivirus a 6 for protection in every home-user round from February 2025 to August 2026.
  • Its performance score was 5.5 in the June 2026 and August 2026 rounds.
  • Microsoft says Defender moved away from a static signature-based engine to predictive technologies such as machine learning in 2015.
  • With tamper protection on, registry changes to Defender settings are blocked, and since update 1.383.1159.0 (March 2023) it no longer locks Allow Scanning Network Files.
  • Microsoft advises security intelligence version 1.287.60.0 (February 2019) or later to help keep tamper protection from interfering with non-Microsoft security products.

What happens when you disable Windows Defender?

Microsoft Support says that while real-time protection is off, files you open or download won’t be scanned for threats, though scheduled scans continue to run. Files that are downloaded or installed won’t be scanned until the next scheduled scan. Your device might be vulnerable to threats during that window.

Real-time protection continuously monitors your device for potential threats such as viruses, malware, and spyware, scanning files and programs as they are accessed or executed. Microsoft Defender Antivirus is built into Windows.

What will happen if I disable Windows Defender?

New files go unscanned until the next scheduled scan, and real-time protection will turn back on automatically after a short while. Microsoft notes that excluding a single file or folder is safer than turning the entire antivirus protection off. Treat a pause as temporary, since the setting reverts on its own.

Unscanned files: While real-time protection is off, files you open or download won’t be scanned for threats, and your device might be vulnerable. Download nothing you would not run on a spare machine until protection is back on.

Step 1: Turn Off Tamper Protection First

Tamper protection is a feature that helps prevent malicious apps from changing important Microsoft Defender Antivirus settings, including real-time protection and cloud-delivered protection. Microsoft Support’s Windows Security guide says that if it is on, you must turn it off before you can turn real-time protection off.

Tamper protection switch in Windows Security
The Tamper protection switch in Windows Security, under Virus & threat protection settings.
  1. In the Start menu, search for Windows Security and open the app.
  2. In the app, select Virus & threat protection, then Manage settings.
  3. Scroll to Tamper protection and turn it Off using the toggle button.

When tamper protection is on, real-time protection, behavior monitoring and cloud protection stay on, and attempts to modify Defender settings through the registry are blocked. Microsoft says tamper protection is available in all editions of Windows 10, version 1903 and later. Tamper protection doesn’t affect how third-party antivirus apps work or how they register with Windows Security. Since security intelligence update 1.383.1159.0 (March 2023), tamper protection no longer locks Allow Scanning Network Files to its default value.

Step 2: Turn Off Real-Time Protection in Windows Security

Microsoft Support says you can turn Real-time protection On or Off using the toggle button under Virus & threat protection settings. The steps are identical on both current versions of Windows, because both use the built-in Windows Security app. Microsoft Support also says real-time protection will soon turn on automatically again to protect your device.

Real-time protection switch set to Off in Windows Security
The Real-time protection switch set to Off in Virus & threat protection settings.
  1. In the Windows Security app, select Virus & threat protection, then Manage settings.
  2. In the Real-time protection section, set the toggle to Off. Do the task that needed Defender out of the way, then switch the toggle back on.

Is Windows Defender always on?

Microsoft says the Windows Security app is built into Windows, ensuring your device is protected from the moment you start it up. Turning real-time protection off is temporary, because it turns back on automatically after a short while. In practice, Defender stays on unless another antivirus takes over.

Step 3: Install Another Antivirus to Keep Defender Off

Microsoft Learn’s Defender compatibility table shows that on Windows 10 and Windows 11, Defender is in active mode when it is the primary antivirus. With a non-Microsoft antivirus/antimalware solution as primary, Defender is in disabled mode, which happens automatically. Microsoft Support adds that if you install a compatible non-Microsoft antivirus program, Microsoft Defender antivirus will automatically turn itself off.

  1. Install and activate the replacement antivirus.
  2. Restart the PC when the installer asks.
  3. Check the virus and threat protection page for the new product.
Windows versionPrimary antivirusMicrosoft Defender Antivirus state
Windows 10, Windows 11Microsoft Defender AntivirusActive mode
Windows 10, Windows 11A non-Microsoft antivirus/antimalware solutionDisabled mode (happens automatically)

Source: Microsoft Learn, Microsoft Defender Antivirus compatibility 2026

The table covers endpoints that aren’t onboarded to Microsoft Defender for Endpoint. To help keep tamper protection from interfering with non-Microsoft security products, Microsoft advises security intelligence version 1.287.60.0 (February 2019) or later. Microsoft adds a caveat: In Windows 11, if SmartAppControl is enabled, Defender may go into passive mode instead of remaining in disabled mode.

How do I permanently disable Windows Defender on Windows 11?

Install a non-Microsoft antivirus, because Microsoft says Defender automatically turns itself off when it detects another antivirus program on the device. On Windows 11 with SmartAppControl enabled, Defender may go into passive mode instead of remaining in disabled mode. On Windows 10 and 11, per Microsoft’s documentation, no supported setting keeps Defender off with nothing in its place.

Why Registry Edits and Group Policy Changes Get Blocked

Microsoft Learn’s DisableAntiSpyware reference says the DisableAntiSpyware and DisableAntivirus registry keys were intended for OEMs and IT Pros deploying another antivirus product. These settings aren’t intended for consumer devices, and Microsoft has removed these registry keys. On devices onboarded to Microsoft Defender for Endpoint, setting DisableAntiSpyware is ignored from antimalware platform version 4.18.2108.4 onward.

Group Policy fails more quietly. When tamper protection is on, changes made through a management tool, including Group Policy, might appear to succeed, but tamper protection blocks the changes. Microsoft points administrators to troubleshooting mode to temporarily disable tamper protection when they need to change a protected setting. If a guide still opens with the DisableAntiSpyware registry edit, it relies on a key Microsoft says it has removed.

Step 4: Add an Exclusion Instead of Turning Defender Off

Microsoft Support says an exclusion stops Microsoft Defender Antivirus from scanning a particular file or process in real time. Microsoft calls this safer than turning the entire antivirus protection off. It is also the fix for a program Defender keeps blocking.

Add an exclusion menu in Windows Security with File, Folder, File type and Process
The Add an exclusion menu, with its File, Folder, File type and Process options.
  1. In Windows Security, select Virus & threat protection, then Manage settings. In the Exclusions section, select Add or remove exclusions.
  2. Choose one of the four options: File, Folder, File type or Process. Browse to the item and confirm.

A folder exclusion covers all of the files within that folder. A file type exclusion covers every file of one specified type, such as .docx or .pdf. For a process, Microsoft recommends the full path and file name, which makes it less likely that malware could use the same filename as a trusted, excluded process and evade detection.

How do I stop Windows Defender from blocking a program?

Add a File or Folder exclusion for the program (or a Process exclusion for the files it opens) under Add or remove exclusions. A process exclusion means any file opened by that process will be excluded from real-time scanning. Exclusions only apply to real-time scanning, so scheduled scans with Microsoft Defender Antivirus might still scan those files or processes. Remove the exclusion once the program no longer needs it.

Step 5: Check Whether Windows Defender Is Turned Off

Microsoft’s Get-MpComputerStatus cmdlet gets the status of antimalware protection software installed on the computer, including fields such as AMRunningMode and RealTimeProtectionEnabled. The Windows Security app shows the same state through the Real-time protection On or Off toggle under Virus & threat protection settings.

  1. Open an elevated PowerShell session, a PowerShell window you opened by selecting Run as administrator.
  2. Run Get-MpComputerStatus. Read RealTimeProtectionEnabled, AntivirusEnabled and AMRunningMode in the output.
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabled

Microsoft’s sample output shows AMRunningMode as Normal, with AntivirusEnabled and RealTimeProtectionEnabled both True. Once the real-time toggle is off, RealTimeProtectionEnabled should read False until Defender switches itself back on.

How do I tell if Windows Defender is turned off?

In Windows Security, select Virus & threat protection, then Manage settings, and check whether the Real-time protection toggle is On or Off. In PowerShell, Get-MpComputerStatus reports RealTimeProtectionEnabled directly, alongside AntivirusEnabled and AMRunningMode. Check again later to see whether Windows has switched it back on.

Can you uninstall Windows Defender?

Microsoft Learn describes Microsoft Defender Antivirus as built into Windows, available in Windows 10 and Windows 11 and in versions of Windows Server. Microsoft’s client documentation covers turning Defender off rather than removing it, so on desktop Windows, disabled mode is the end point.

On Windows Server 2016 and later, Microsoft Defender Antivirus is installed and enabled by default, and Microsoft’s reinstall command uses the feature name Windows-Defender. The Uninstall-WindowsFeature cmdlet uninstalls specified roles, role services, and features from a computer running Windows Server. This guide pairs that cmdlet with the feature name; Microsoft’s pages cited here give the two separately.

Uninstall-WindowsFeature -Name Windows-Defender

To put it back, run Install-WindowsFeature -Name Windows-Defender in an elevated PowerShell session.

How well does Windows Defender protect a PC?

AV-TEST scored Microsoft Defender Antivirus (Consumer) 4.18 a 6 for protection in all its home-user rounds from February 2025 to August 2026. Performance read 5.5 in the June 2026 and August 2026 rounds.

Protection, Performance and Usability · Source: AV-TEST Institute, Microsoft home-user test results 2025-2026 AV-TEST Institute · 2025 to 2026 Defender AV-TEST Scores by Round, 2025-2026 (Points) Protection, Performance and Usability 6 4.8 3.6 2.4 1.2 0 Protection: 6 Usability: 6 Performance: 5.5 Feb2025 Apr2025 Jun2025 Aug2025 Oct2025 Dec2025 Feb2026 Apr2026 Jun2026 Aug2026 SOURCE AV-TEST Institute, Microsoft home-user test results 2025-2026
View the data
Test roundProtectionPerformanceUsability
Feb 2025666
Apr 2025666
Jun 2025666
Aug 2025665.5
Oct 2025666
Dec 2025666
Feb 2026666
Apr 2026666
Jun 202665.56
Aug 202665.56

Usability dipped to 5.5 only in the August 2025 round. Microsoft says Defender can block almost all malware at first sight, in milliseconds, and has used machine learning since 2015. A flat protection line is the cost of a permanent switch-off without a replacement.

Is Windows Defender really needed?

Some antivirus is needed, and Defender is the default one. On Windows 10 and Windows 11, Defender is in active mode when it is the primary antivirus. Its AV-TEST protection score was 6 in every round from February 2025 to August 2026. Replacing it is reasonable; running nothing is the risky choice.

Conclusion

Disabling Windows Defender on Windows 11 and 10 is a two-step pause. Tamper protection goes off before real-time protection, and real-time protection will turn back on automatically after a short while. The registry route is gone, because Microsoft removed the DisableAntiSpyware keys. AV-TEST still scored Defender a 6 for protection in its August 2026 round.

Readers who need Defender out of the way for one installer get the most from an exclusion. Readers switching suites get a clean handover through disabled mode. Check the result with Get-MpComputerStatus either way.

Found this useful?

Pass it on to someone who could use it.

Cite this page

Thakur, T. (2026, November 23). How to Disable Windows Defender on Windows 11 and 10. XtendedView. https://xtendedview.com/disable-uninstall-windows-defender/

Thakur, Tushar. “How to Disable Windows Defender on Windows 11 and 10.” XtendedView, 23 Nov. 2026, https://xtendedview.com/disable-uninstall-windows-defender/.

Thakur, Tushar. “How to Disable Windows Defender on Windows 11 and 10.” XtendedView, November 23, 2026. https://xtendedview.com/disable-uninstall-windows-defender/.

Source: <a href="https://xtendedview.com/disable-uninstall-windows-defender/">How to Disable Windows Defender on Windows 11 and 10</a>, XtendedView

References10 sources from 2 publishers

  1. Virus and Threat Protection in the Windows Security App
  2. Tamper protection overview
  3. Microsoft Defender Antivirus compatibility with other security products
  4. DisableAntiSpyware
  5. Configure Microsoft Defender Antivirus on Windows Server
  6. Uninstall-WindowsFeature
  7. Stay protected with the Windows Security app
  8. Get-MpComputerStatus
  9. Test antivirus software Microsoft
  10. Microsoft Defender Antivirus in Windows Overview

Written by

Tushar Thakur Founder (82 articles, writing here since 2011)

Tushar Thakur founded XtendedView in 2011 while studying Electronics and Instrumentation Engineering in Mumbai, and in 2013 IndiBlogger named it the best blog in its gadgets category. He has spent more than a decade building tech blogs and working on search optimisation and online marketing, and co-founded the agency WebGeeksMedia. He sets XtendedView's editorial direction and writes about Windows customisation, Android tweaks and the gadgets he tests himself.

Supriya Gharat Reviewed by Supriya Gharat

The week in tech, made simple

New tutorials, quick fixes and the numbers behind the headlines, in one short email.

  • Weekly, never daily
  • No spam, ever
  • Unsubscribe anytime

Disclaimer: XtendedView publishes general information, not legal, financial or professional advice. Figures come from the sources named on each page and can change, so check the original source and its date before you rely on a number. Back up your device before following a tutorial. A few articles carry affiliate links, and a commission never changes a review or a statistic. Read our Disclaimer

8 reader comments open for replies
  1. Mark Wilson

    I’m sorry but but Windows Defender is JUNK! One constant battle with false positives and restoring the files it removes arbitrarily. I detest it, and if I find a way to rip it bodily from my machine I will…

    Reply

  2. I am using Bitdefender. Is my choice sounds good as compared to using default Windows Defender?

    Reply

  3. Why are you disable Defender? Isn’t it protect our computers from computer viruses?

    Reply

Leave a comment

Your email is never published. Every comment is read before it appears.

Contents 12 sections
Back to the top of the page