Microsoft Defender is the built-in antivirus solution included with Windows 11. It provides real-time protection against viruses, malware, ransomware, phishing attacks, and other security threats without requiring additional software. For most users, Microsoft Defender offers reliable protection and automatically updates through Windows Update to defend against the latest threats.
However, there are situations where you may want to disable Microsoft Defender temporarily or permanently. For example, you might be installing a third-party antivirus program, troubleshooting software conflicts, testing applications in a controlled environment, or managing security settings in an enterprise environment. While disabling Microsoft Defender is possible, it should only be done if you understand the security risks involved, as your computer will become more vulnerable to malware if no other antivirus software is active.
This guide explains several methods to disable Microsoft Defender in Windows 11, including temporary and long-term options, while also covering safer alternatives and important precautions.
Why Would You Disable Microsoft Defender?
Most users should leave Microsoft Defender enabled, but there are valid reasons to disable it.
Common reasons include:
- Installing another antivirus program
- Software compatibility testing
- Troubleshooting performance issues
- Running specialized applications
- Enterprise security management
- Temporary malware analysis in isolated environments
- Reducing background scanning during specific tasks
If Microsoft Defender is your only antivirus, disabling it is generally not recommended.
Things to Know Before Disabling Microsoft Defender
Before making any changes, keep these points in mind:
- Your computer will no longer have real-time malware protection.
- Files downloaded from the internet won’t be automatically scanned.
- You may become more vulnerable to viruses and ransomware.
- Windows Security will display warning messages.
- Microsoft Defender may automatically re-enable itself after updates or restarts.
- Installing another trusted antivirus usually disables Defender’s real-time protection automatically.
Creating a system restore point before making advanced changes is also a good practice.
Method 1: Turn Off Real-Time Protection
This is the simplest way to temporarily disable Microsoft Defender.
Press Windows + I to open Settings.
Go to Privacy & security.
Select Windows Security.
Click Virus & threat protection.
Choose Manage settings under Virus & threat protection settings.
Turn off:
- Real-time protection
Approve the User Account Control prompt if it appears.
This disables real-time scanning temporarily. Windows typically turns it back on automatically after a restart or after a period of time if no other antivirus is installed.
Method 2: Disable Tamper Protection
Tamper Protection prevents unauthorized changes to Microsoft Defender settings.
Open Windows Security.
Go to Virus & threat protection.
Click Manage settings.
Locate Tamper Protection.
Turn it Off.
Disabling Tamper Protection allows advanced configuration methods, such as Group Policy, to take effect.
For security, consider re-enabling Tamper Protection after completing your configuration.
Method 3: Use Local Group Policy Editor
This method is available in Windows 11 Pro, Enterprise, and Education editions.
Press Windows + R.
Type:
gpedit.msc
Press Enter.
Navigate to:
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
Double-click:
Turn off Microsoft Defender Antivirus
Select:
Enabled
Click Apply.
Click OK.
Restart your computer.
Depending on your Windows version, Microsoft Defender may still enable certain protections unless another antivirus solution is installed.
Method 4: Install a Third-Party Antivirus
The safest way to disable Microsoft Defender is by installing another reputable antivirus application.
Once Windows detects a compatible antivirus program, Microsoft Defender usually switches its real-time protection off automatically while allowing the new antivirus to provide protection.
This method maintains security without requiring manual configuration.
Method 5: Disable Scheduled Scans
If Microsoft Defender is affecting system performance during scheduled scans, you can disable those tasks.
Search for Task Scheduler.
Open it.
Navigate to:
Task Scheduler Library > Microsoft > Windows > Windows Defender
You may see tasks such as:
- Windows Defender Cache Maintenance
- Windows Defender Cleanup
- Windows Defender Scheduled Scan
- Windows Defender Verification
Right-click the scheduled scan task.
Choose Disable.
This reduces automatic scanning but does not completely disable Microsoft Defender.
Method 6: Add Exclusions Instead of Disabling Defender
If a specific folder or application causes repeated scans, adding an exclusion is often a better solution.
Open Windows Security.
Select Virus & threat protection.
Click Manage settings.
Scroll to Exclusions.
Select Add or remove exclusions.
Add the trusted:
- File
- Folder
- Process
- File type
Microsoft Defender will skip scanning the excluded item while continuing to protect the rest of your system.
Only exclude files or folders you fully trust.
Method 7: Use Microsoft Defender in Passive Mode
In business environments, Microsoft Defender can operate in Passive Mode when managed alongside enterprise security software.
Passive Mode reduces Defender’s active role while allowing it to remain installed.
This feature is typically configured through enterprise management tools and is not commonly available on consumer editions of Windows.
Method 8: Disable Defender Through Registry Editor
This method is intended for advanced users.
Before proceeding, disable Tamper Protection.
Press Windows + R.
Type:
regedit
Press Enter.
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
If the key doesn’t exist, create it.
Create a new DWORD (32-bit) Value named:
DisableAntiSpyware
Set its value to:
1
Restart Windows.
Keep in mind that modern versions of Windows 11 may ignore this registry value because Microsoft has deprecated it in many scenarios.
Method 9: Boot into Safe Mode for Troubleshooting
If you’re troubleshooting software conflicts, Safe Mode reduces Microsoft Defender activity.
Open Settings.
Go to System > Recovery.
Click Restart now under Advanced startup.
Choose:
- Troubleshoot
- Advanced options
- Startup Settings
- Restart
Press 4 or F4.
Windows starts in Safe Mode with only essential drivers and services.
This is useful for diagnostics rather than permanently disabling Defender.
Method 10: Re-enable Microsoft Defender
If you disabled Microsoft Defender and later want to restore protection:
Open Windows Security.
Go to Virus & threat protection.
Select Manage settings.
Turn Real-time protection back on.
If you changed Group Policy or Registry settings, reverse those changes and restart the computer.
Keeping Microsoft Defender enabled is recommended unless another trusted antivirus is actively protecting your system.
Why Microsoft Defender Turns Itself Back On
Many users notice that Microsoft Defender re-enables automatically.
This behavior is intentional and can occur because:
- Windows restarted.
- A Windows update was installed.
- No other antivirus software is detected.
- Tamper Protection restored the settings.
- Real-time protection was only disabled temporarily.
Microsoft designed these safeguards to reduce the risk of leaving systems unprotected.
Is It Safe to Disable Microsoft Defender?
It depends on your situation.
If another reputable antivirus solution is installed and active, disabling Defender’s real-time protection is generally safe because your system remains protected.
If Defender is your only antivirus, disabling it significantly increases your exposure to malware, ransomware, spyware, and other threats.
For most home users, leaving Microsoft Defender enabled is the safest choice.
Tips Before Disabling Microsoft Defender
If you decide to disable Microsoft Defender, follow these recommendations:
- Install another antivirus first if possible.
- Keep Windows updated.
- Download software only from trusted sources.
- Avoid disabling protection permanently unless necessary.
- Re-enable Defender after troubleshooting.
- Create a restore point before making advanced changes.
These precautions help reduce security risks.
Frequently Asked Questions
Can I permanently disable Microsoft Defender?
Windows 11 includes protections such as Tamper Protection that make permanently disabling Microsoft Defender difficult. In most cases, Windows restores protection automatically unless another antivirus program is installed.
Does installing another antivirus disable Microsoft Defender?
Yes. Windows typically detects compatible antivirus software and automatically disables Microsoft Defender’s real-time protection while allowing the new antivirus to take over.
Why does Microsoft Defender keep turning back on?
Windows automatically restores Microsoft Defender after restarts, updates, or when no other antivirus software is available to protect the system.
Should I disable Microsoft Defender to improve performance?
Generally, no. Microsoft Defender is optimized for Windows and has a relatively small impact on performance for most users. If you’re experiencing slowdowns, consider adding trusted exclusions or scheduling scans instead of disabling protection completely.
Conclusion
Microsoft Defender is an essential part of Windows 11’s security system, providing continuous protection against malware and other threats. While there are legitimate reasons to disable it temporarily—such as installing another antivirus or troubleshooting software conflicts—doing so should be approached carefully, especially if no alternative protection is available.
For most users, temporarily disabling real-time protection or adding trusted exclusions is a safer approach than turning off Defender entirely. If you do need to disable Microsoft Defender, use the official Windows Security settings or supported administrative tools, and restore protection as soon as your task is complete. Maintaining active antivirus protection remains one of the most effective ways to keep your Windows 11 computer secure.


