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.

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.

- In the Start menu, search for Windows Security and open the app.
- In the app, select Virus & threat protection, then Manage settings.
- 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.

- In the Windows Security app, select Virus & threat protection, then Manage settings.
- 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.
- Install and activate the replacement antivirus.
- Restart the PC when the installer asks.
- Check the virus and threat protection page for the new product.
| Windows version | Primary antivirus | Microsoft Defender Antivirus state |
|---|---|---|
| Windows 10, Windows 11 | Microsoft Defender Antivirus | Active mode |
| Windows 10, Windows 11 | A non-Microsoft antivirus/antimalware solution | Disabled 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.

- In Windows Security, select Virus & threat protection, then Manage settings. In the Exclusions section, select Add or remove exclusions.
- 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.
- Open an elevated PowerShell session, a PowerShell window you opened by selecting Run as administrator.
- Run
Get-MpComputerStatus. Read RealTimeProtectionEnabled, AntivirusEnabled and AMRunningMode in the output.
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabledMicrosoft’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-DefenderTo 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.
View the data
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.
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
- Virus and Threat Protection in the Windows Security App
- Tamper protection overview
- Microsoft Defender Antivirus compatibility with other security products
- DisableAntiSpyware
- Configure Microsoft Defender Antivirus on Windows Server
- Uninstall-WindowsFeature
- Stay protected with the Windows Security app
- Get-MpComputerStatus
- Test antivirus software Microsoft
- Microsoft Defender Antivirus in Windows Overview






8 reader comments open for replies
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…
I am using Bitdefender. Is my choice sounds good as compared to using default Windows Defender?
Yes Kenneth. Bitdefender is really good antivirus program.
Why are you disable Defender? Isn’t it protect our computers from computer viruses?
Many tests show that it is not very useful antivirus program.
Nice article. Which antivirus would you prefer to use? Please reply.
I personally use Kaspersky Internet Security.
Windows ten and up is spywareadware bloatware shit.