Windows Defender blocking a program you need to install?
Experiencing high CPU usage from Microsoft Defender Antivirus?
Or maybe you’re a developer and need to disable Windows Defender for development work?
I’ll show you exactly how to completely disable Windows Defender in Windows 10 and Windows 11—all the proven methods in 2024.
Why Does Windows Defender Turn Itself Back On?
Microsoft designed its antivirus like an unremovable bodyguard.
Defender turns itself back on after restart—that’s not a bug, it’s a feature.
The system has built-in Tamper Protection that guards against unauthorized changes.
Frustrating when Windows Defender automatically deletes files, right?
Especially when you’re working with development tools or games.
Method 1: Disable Windows Defender via Group Policy Editor
This is the cleanest method for Windows 10 Pro and Windows 11 Enterprise.
Step-by-Step: gpedit.msc to Disable Microsoft Defender Antivirus
-
Open the Local Group Policy Editor:
- Press Windows + R
- Type “gpedit.msc”
- Confirm as administrator
-
Navigate to the correct path:
- Computer Configuration
- Administrative Templates
- Windows Components
- Microsoft Defender Antivirus
-
Find and edit the policy:
- Locate “Turn off Microsoft Defender Antivirus”
- Double-click it
- Select “Enabled” (yes, that’s correct)
- Apply and OK
-
Disable additional components:
- Real-time protection → Disable monitoring
- Windows Defender Cloud Protection → Deactivate
- Automatic sample submission → Disable
Note: Don’t have the gpedit option in Windows 11 Home?
No worries, I have a solution below.
Method 2: Disable Windows Defender via System Registry
The DisableAntiSpyware registry key is your secret weapon.
It works on EVERY version of Windows, including Windows 11 Home without gpedit.
Regedit DisableAntiSpyware Windows 11 Instructions
-
First, disable Tamper Protection:
- Open Windows Security
- Virus & threat protection
- Manage settings
- Tamper Protection → Toggle to “Off”
-
Open Registry Editor:
Windows + R → regedit → Enter -
Navigate to the key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender -
Create a DWORD value:
- Right-click → New → DWORD (32-bit) Value
- Name it: DisableAntiSpyware
- Set the value to: 1
-
Add a key for Real-Time Protection:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection- Create DWORD: DisableRealtimeMonitoring
- Value: 1
-
Restart your system
Pro tip: Back up your registry before making changes (File → Export).
Method 3: Defender Control Program to Disable Windows Defender
Sordum’s Defender Control—this is the easiest method.
Defender Control v2.1 Instructions
- Download Defender Control from the official Sordum website
- Run as administrator
- Click “Disable Windows Defender”
- Done!
The program automatically:
- Modifies the registry
- Disables services
- Blocks Defender Scheduled Scan
- Deactivates Controlled Folder Access
Want to restore it? Click “Enable Windows Defender.”
Method 4: Command Prompt to Disable Windows Defender
For terminal enthusiasts—disable Windows Defender via cmd as administrator.
PowerShell Commands (run as admin)
# Disable Real-Time Protection
Set-MpPreference -DisableRealtimeMonitoring $true
# Disable cloud protection
Set-MpPreference -DisableCloudProtection $true
# Disable automatic samples
Set-MpPreference -SubmitSamplesConsent 2
# Disable all scans
Set-MpPreference -DisableScheduledScanning $true
Note: These commands work temporarily.
Windows will restore settings after restart unless you block via registry.
Method 5: Autoruns to Disable Microsoft Defender
Autoruns from Microsoft is a powerful tool for advanced users.
How to Use
-
Download Autoruns from Microsoft Sysinternals
-
Run as administrator
-
Go to the “Services” tab
-
Uncheck:
- WinDefend
- WdNisSvc
- WdFilter
-
Go to the “Scheduled Tasks” tab
-
Disable all Windows Defender tasks
This method is for those who want complete control.
How to Temporarily Disable Real-Time Protection in Windows 11
Sometimes you just need to disable background scanning for a moment.
Quick Method
- Windows + I → Privacy & security
- Windows Security
- Virus & threat protection
- Manage settings
- Toggle “Real-time protection”
Defender will disable for 15 minutes or until restart.
Perfect when Windows Defender is blocking program installation temporarily.
Disabling Windows Defender for Specific Use Cases
Disabling Defender for Gaming Performance
Gamers know the problem—Windows Defender high CPU usage is a must-fix.
Solution:
- Add your games folder to exclusions
- Disable background scanning while gaming
- Use Game Mode in Windows 11
Defender Dev Drive Protection for Development
Developers need freedom.
What to do:
- Add project folders to exclusions
- Disable Controlled Folder Access separately
- Configure Dev Drive in Windows 11
How to Permanently Disable Windows Defender for Business
Using enterprise solutions?
Options:
- Group Policy for the entire domain
- SCCM/Intune policies
- PowerShell scripts with Task Scheduler
Installing an Alternative Antivirus
Which antivirus program instead of Windows Defender?
Norton Antivirus Installation and Defender Disabling
Norton automatically deactivates Defender.
You don’t need to do anything—the conflict between Windows Defender and another antivirus is resolved automatically.
Kaspersky Conflict with Windows Defender Solution
Kaspersky disables Defender during installation.
If Defender is still running despite being disabled:
- Uninstall Kaspersky
- Disable Defender via registry method
- Reinstall Kaspersky
Is It Worth Disabling Windows Defender for Avast?
Avast is a good free alternative.
Windows Defender vs Bitdefender—which to disable?
Bitdefender wins in tests, but Defender is sufficient for most users.
McAfee Requires Disabling Windows Defender Instructions
McAfee sometimes has trouble with automatic disabling.
Use the registry method before installation.
Troubleshooting
Defender Turns Itself Back On After Restart: How to Fix
How long does Defender stay disabled in Windows 11?
By default—15 minutes or until restart.
Permanent solution:
- Check that Tamper Protection is disabled
- Verify registry keys
- Temporarily disable Windows Update
- Use Defender Control for certainty
What to Do When Defender Blocks a Safe Program
Instead of disabling completely:
-
Add an exclusion:
- Windows Security
- Exclusions
- Add folder/file/process
-
Disable only for a specific folder
-
Temporarily disable Real-Time Protection
Disabling Windows Defender Firewall and Network Protection
Sometimes you need to disable the firewall too.
Instructions
- Control Panel → System and Security
- Windows Defender Firewall
- Turn Windows Defender Firewall on or off
- Disable for both private and public networks
Note: This is a separate function from the antivirus!
How to Restore Windows Defender After Disabling
Changed your mind?
How to Restore
- Registry method: Change DisableAntiSpyware to 0
- GPO method: Set to “Not configured”
- Defender Control: Click “Enable”
- Uninstall alternative antivirus
The system will automatically reactivate all components.
System Version-Specific Methods
Windows 10 22H2: Latest Method to Disable Defender
In the latest version, Microsoft has made the process harder.
You must:
- First disable Tamper Protection
- Use the registry method
- Block security updates
Windows Server 2022: Deactivating Microsoft Defender
On server, use:
Uninstall-WindowsFeature -Name Windows-Defender
This is a permanent solution for server environments.
Disabling Windows Defender Notifications in Action Center
Tired of red alerts?
Disable Notifications
- Settings → System → Notifications
- Turn off “Security and Maintenance”
- Alternatively: Group Policy Editor
- User Configuration → Administrative Templates
- Start Menu and Taskbar
- “Remove Security and Maintenance icon”
FAQ: Frequently Asked Questions
Why does Windows Defender turn on automatically?
It’s Microsoft’s protection against malware.
The system checks every few minutes if you have active protection.
Is it safe to disable Windows Defender?
Without an alternative—no.
With another antivirus—yes.
Risks of disabling Windows Defender:
- No ransomware protection
- Vulnerability to trojans
- No scanning of emails and downloads
When is it worth disabling Microsoft Defender Antivirus?
- Installing specialized software
- Working with penetration testing tools
- You have a better antivirus
- Testing your own applications
Where are Tamper Protection settings located?
Windows Security → Virus & threat protection → Manage settings → At the very bottom
Can you disable Windows Defender without admin rights?
You cannot.
You need admin rights for all methods.
Alternative security after disabling Defender?
Free:
- Avast Free
- AVG Free
- Avira Free
Paid:
- Bitdefender Total Security
- Norton 360
- ESET Internet Security
Summary
How to disable Microsoft Defender Antivirus in 2024—you now have complete knowledge.
The easiest way is to use Defender Control—one click and you’re done.
For Windows Pro, I recommend the Group Policy Editor.
For Home—registry modification.
Remember about security—always have some form of protection.
How to permanently disable Windows Defender in Windows 11 2024 is no longer a mystery to you.