There are times when disabling Windows Defender becomes necessary. Perhaps you’re installing software that Windows Defender mistakenly flags as harmful, or you need to work with files that trigger constant warnings. In this article, we’ll walk you through several methods to disable Windows Defender safely and effectively.
Please follow the steps carefully and remember you can always re-enable Windows Defender when needed.

Method 1: Disable Windows Defender via Windows Security Settings
- Open the Windows Security application from the Start Menu.
- Navigate to Virus & Threat Protection.
- Click on Manage Settings under Virus & Threat Protection Settings.
- Turn off Real-time Protection by toggling the switch. This will disable Windows Defender temporarily.
- You can also turn off other settings like Cloud-delivered protection, Automatic sample submission, and Tamper protection for complete disabling.
- To enable Defender again, simply return to this page and switch them back on.
Method 2: Disable Windows Defender via Group Policy Editor (gpedit.msc)
Note: This method is only available for Windows 10/11 Pro, Enterprise, and Education editions.
- Open the Run dialog box by pressing Windows + R.
- Type
gpedit.mscand press Enter. - In the Group Policy Editor, navigate to:
Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus - Find and double-click on Turn off Microsoft Defender Antivirus.
- Select Enabled, then click Apply and OK.
- Also, navigate to:
Microsoft Defender Antivirus > Real-time Protection- Double-click Turn off real-time protection and enable it.
- Also disable Allow antimalware service to remain running always.
- Restart your PC for the changes to take effect.
To re-enable Defender, follow the same steps but set the policy to Not Configured or Disabled.
Method 3: Disable Windows Defender via Registry Editor
Warning: Editing the Registry can cause serious problems if not done correctly. Proceed with caution.
- Open the Run dialog box by pressing Windows + R.
- Type
regeditand press Enter. - Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender - In the right pane:
- Double-click on DisableAntiSpyware (or create it if it doesn’t exist) and set its value to
1.
- Double-click on DisableAntiSpyware (or create it if it doesn’t exist) and set its value to
- Create the following DWORD (32-bit) Values:
DisableRealtimeMonitoring→ Set value to1DisableAntiVirus→ Set value to1DisableSpecialRunningModes→ Set value to1ServiceKeepAlive→ No changes needed (default value)DisableRoutinelyTakingAction→ Set value to1
- Additional steps:
- Right-click on the Windows Defender folder, create a new Key named Real-Time Protection.
- Inside it, create and set the following DWORD (32-bit) values:
DisableBehaviorMonitoring→1DisableOnAccessProtection→1DisableScanOnRealtimeEnable→1
- Create another key under Windows Defender named Signature Updates:
- Inside it, create a DWORD:
ForceUpdateFromMU→1
- Inside it, create a DWORD:
- Create another key named Spynet:
- Inside it, create a DWORD:
DisableBlockAtFirstSeen→1
- Inside it, create a DWORD:
After these modifications, restart your PC to completely disable Windows Defender.
If you want to revert to the original settings, simply delete the added keys and DWORDs, or set their values back to 0.
Important Notes
- Disabling Windows Defender exposes your system to potential risks. Only do this if absolutely necessary.
- Always have an alternative antivirus solution installed if you plan to disable Defender permanently.
- After making these changes, monitor your system closely for any unusual behavior.
Conclusion
Disabling Windows Defender can be necessary for specific situations where it causes conflicts with certain files or software. By following the above methods — through Windows Settings, Group Policy Editor, or the Registry Editor — you can safely and thoroughly disable it. Remember, whenever you no longer need Defender disabled, it’s strongly recommended to re-enable it for better security.
Stay safe, and always back up your important data before making major system changes!
Tags:
windows, windowsdefender, disabledefender, windowssecurity, registryeditor, gpedit, cybersecurity, antivirus, windows10, windows11, techguide, howto
Hashtags:
#windows #windowsdefender #disabledefender #windowssecurity #registryeditor #gpedit #cybersecurity #antivirus #windows10 #windows11 #techguide #howto