Curious Minds

Clear answers to science and history questions

How to Stop Defender in Windows 10 and 11

· 5 min read · Science

Stopping Microsoft Defender temporarily can be useful when installing trusted software, running specific diagnostic tools, or performing system maintenance that conflicts with real-time protection. Disabling Defender should only be done briefly and with caution, as it leaves your system vulnerable to malware and other threats. Always re-enable protection as soon as the task is complete. This guide provides safe, step-by-step instructions for turning off Microsoft Defender Antivirus in Windows 10 and Windows 11 using built-in settings, Group Policy, or PowerShell, depending on your system edition and administrative access.

What You'll Need

  • Administrative privileges on the Windows deviceAccess to Windows Settings, Group Policy Editor (Windows Pro, Enterprise, or Education), or PowerShell
  • A clear understanding of the risks involved in disabling real-time protection
  • An alternative security plan if the system will remain unprotected for an extended period (e.g., network isolation or third-party antivirus)

Step-by-Step

  1. Open Windows Security: Press the Windows key + I to open Settings, then navigate to Privacy & security > Windows Security > Open Windows Security. Alternatively, search for "Windows Security" in the Start menu and open it directly.
  2. Access Virus & threat protection settings: In the Windows Security dashboard, click on Virus & threat protection. Under the Virus & threat protection settings section, select Manage settings.
  3. Turn off real-time protection temporarily: Toggle the switch under Real-time protection to Off. A User Account Control (UAC) prompt may appear—click Yes to confirm. Windows will display a notification indicating that your device may be vulnerable and that real-time protection will automatically turn back on after a short period.
  4. Confirm the change: Verify that the toggle is now set to Off and that the status message reflects that real-time protection is disabled. Note that cloud-delivered protection and automatic sample submission may also be affected depending on your configuration.
  5. For longer-term disablement (Windows Pro/Enterprise/Education): Press Windows key + R, type gpedit.msc, and press Enter to open the Group Policy Editor. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus. Double-click Turn off Microsoft Defender Antivirus, set it to Enabled, click Apply, then OK. Restart the computer for the change to take full effect.
  6. Using PowerShell (all editions): Search for "PowerShell", right-click the result, and choose Run as administrator. Enter the command: Set-MpPreference -DisableRealtimeMonitoring $true and press Enter. To re-enable protection later, use: Set-MpPreference -DisableRealtimeMonitoring $false.
  7. Re-enable Defender after completing your task: Return to the same settings path (Windows Security > Virus & threat protection > Manage settings) and toggle Real-time protection back to On. If using Group Policy, set the policy to Not Configured or Disabled and restart. If using PowerShell, run the re-enable command above.

Common Mistakes

  • Disabling Defender and forgetting to re-enable it, leaving the system exposed to threats for extended periods.
  • Assuming that turning off real-time protection disables all Defender components, such as cloud protection or periodic scanning, which may remain active unless separately configured.
  • Using third-party tools or scripts to disable Defender without understanding their side effects, which may compromise system stability or violate software licenses.
  • Attempting to disable Defender on Windows Home edition via Group Policy Editor, which is not available—this leads to confusion when gpedit.msc fails to load or has no effect.
  • Believing that a temporary toggle off provides permanent disablement; Windows Defender may automatically reactivate after a system update or restart.

Tips

  • Only disable Defender for the minimum time necessary—ideally, less than 15 minutes—and monitor system behavior closely during that window.
  • If you regularly need to bypass Defender for trusted applications, consider adding exclusions instead: go to Virus & threat protection settings > Exclusions > Add or remove exclusions to specify files, folders, processes, or file types.
  • Keep your system updated even when Defender is off; Windows Update continues to deliver critical security patches independently of antivirus status.
  • Use a standard user account for daily tasks and reserve administrative access only when needed to reduce the risk of unintended system changes.
  • After re-enabling Defender, run a quick scan to ensure no threats were introduced during the downtime: in Windows Security, select Virus & threat protection > Quick scan.

Troubleshooting

  • Real-time protection turns back on immediately: This is expected behavior—Windows Defender is designed to auto-reenable after a brief period to maintain baseline protection. For longer disablement, use Group Policy or PowerShell methods described above.
  • Group Policy Editor not available: If you're using Windows Home edition, gpedit.msc is not included. Use the Windows Security settings or PowerShell method instead. Consider upgrading to Windows Pro if enterprise management features are required.
  • PowerShell command returns an error: Ensure you are running PowerShell as an administrator. Without elevated privileges, the Set-MpPreference cmdlet will fail due to access restrictions.
  • Defender remains active after disabling: Some enterprise-managed devices have Defender controlled by organizational policies (via Intune or Group Policy). In such cases, local changes may be overridden. Contact your system administrator for assistance.
  • Unable to re-enable Defender: If the toggle is grayed out or unresponsive, restart the Security Center service: open Services (services.msc), find Security Center, right-click, and select Restart. Then try toggling protection again.

Frequently Asked Questions

Is it safe to turn off Microsoft Defender?

It is safe only for short, controlled periods when performing trusted tasks like installing verified software. Never leave Defender disabled while browsing the internet, opening email attachments, or downloading files from unknown sources.

Will turning off Defender improve system performance?

You may notice a minor improvement in CPU or disk usage during intensive tasks, but modern Defender is designed to minimize impact. Performance gains are typically negligible on recent hardware.

Can I disable Defender permanently?

While possible via Group Policy or registry edits, permanent disablement is not recommended and may violate security compliance standards. Windows may also attempt to reactivate Defender after updates.

What’s the difference between turning off real-time protection and turning off Defender entirely?

Disabling real-time protection stops active monitoring but leaves other components (like scheduled scans) potentially active. Turning off the entire service via Group Policy stops all Defender functions until re-enabled.

Does disabling Defender affect Windows Firewall?

No. Microsoft Defender Firewall is a separate component. Turning off Defender Antivirus does not disable the firewall unless explicitly configured otherwise.

Will I get a warning if Defender is off?

Yes. Windows Security will display a persistent notification stating that virus and threat protection is off, and the action center may show a security alert until protection is restored.

}
In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions