Disabling Microsoft Defender Antivirus (also known as Windows Defender) is sometimes necessary to troubleshoot blocked installers, isolate false positives during development, or confirm whether real-time scanning is causing performance issues. Temporarily turning off protection can remove the security layer that interferes with file writes, downloads, and code execution.
Defender is managed through the Windows Security app and the Windows Security Center, where Real-time protection scans files as they are accessed or created. In managed environments, policy-backed settings can also be applied through Local Group Policy Editor or registry-based policy keys that mirror those policies.
Disabling antivirus protections increases exposure to malware and unsafe downloads, and some changes may be blocked or reverted by Tamper Protection. Windows 11 Home does not include Local Group Policy Editor, and enterprise-managed devices may enforce Defender settings centrally, preventing local changes from sticking.
Methods to disable Windows Defender:
This method disables Real-time protection directly from the Windows Security interface and is available on most Windows 10 and Windows 11 systems.
Turning off Real-time protection reduces malware protection immediately and may be automatically re-enabled after a restart or a short period of time.
Re-enable protection by toggling Real-time protection back to On on the same page.
This method uses Local Group Policy Editor to disable Real-time protection on supported editions such as Windows 11 Pro, Enterprise, or Education.
Tamper Protection prevents changes to protected security settings and should be re-enabled after troubleshooting to restore protection.
Re-enable by setting Turn off real-time protection to Not Configured and restarting Windows.
This method creates policy values in the registry that correspond to Defender settings, and is best suited for advanced users who understand the risks of registry changes.
Related: How to back up the Windows registry
Incorrect edits in the registry can cause system instability, and Defender policy values may be ignored or reverted when Tamper Protection is enabled.
Re-enable by deleting DisableRealtimeMonitoring or setting it to 0, then restarting Windows.