sodcalculator

10 Tech How-To

How to Completely Disable Windows Defender

Guide 10-56856 · Updated · Step by step

This guide walks you through turning off Windows Defender (Microsoft Defender Antivirus) on Windows 10 and Windows 11. Disabling it removes real-time protection, cloud-delivered protection, and automatic threat scanning, which can be useful if you run a third-party antivirus or need to perform certain system-level tasks. Note that this weakens your PC’s security, so only do it temporarily or if you have another active antivirus.

What You’ll Need

  • Administrator account on the PC
  • Windows 10 or Windows 11 (Pro, Enterprise, or Education edition) – the Group Policy method does not work on Windows Home
  • If you have Windows Home, you’ll need to use the Registry method or temporarily disable real-time protection via Settings

Step-by-Step

Method 1: Disable Real-Time Protection (Temporary, All Editions)

  1. Open Windows Security by clicking the shield icon in the system tray or searching for “Windows Security” in the Start menu.
  2. Go to Virus & threat protection.
  3. Under “Virus & threat protection settings,” click Manage settings.
  4. Toggle Real-time protection to Off. If prompted by User Account Control, click Yes.
  5. Optionally, also turn off Cloud-delivered protection and Automatic sample submission to reduce Defender’s activity.
  6. Note: Real-time protection will turn back on automatically after a restart or after a short period (usually 24 hours). To keep it off, use Method 2 or 3.

Method 2: Disable via Group Policy (Windows Pro/Enterprise/Education)

  1. Press Win + R, type gpedit.msc, and press Enter.
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
  3. Double-click Turn off Microsoft Defender Antivirus.
  4. Select Enabled, then click OK.
  5. Restart your PC for the change to take effect.
  6. To re-enable later, set the policy back to Not Configured or Disabled.

Method 3: Disable via Registry (All Editions)

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  3. If the Windows Defender key does not exist, right-click on Microsoft, select New > Key, and name it Windows Defender.
  4. Right-click on the Windows Defender key, select New > DWORD (32-bit) Value, and name it DisableAntiSpyware.
  5. Double-click DisableAntiSpyware and set its value to 1.
  6. Click OK and close the Registry Editor.
  7. Restart your PC.
  8. To re-enable, change the value back to 0 or delete the DisableAntiSpyware entry.

Method 4: Disable via PowerShell (Permanent, All Editions)

  1. Right-click the Start button and select Windows PowerShell (Admin) or Terminal (Admin).
  2. Run the command: Set-MpPreference -DisableRealtimeMonitoring $true
  3. To disable other protections, run: Set-MpPreference -DisableIOAVProtection $true and Set-MpPreference -DisableBehaviorMonitoring $true
  4. These settings persist until you change them back, but they may reset after a Windows update or a Defender definition update.

Common Mistakes

  • Using the wrong edition: The Group Policy editor is not available on Windows Home. Use the Registry method instead.
  • Not restarting: Some changes only take effect after a reboot. Always restart after applying a policy or registry change.
  • Assuming the toggle stays off: The real-time protection toggle in Settings is temporary; it will turn back on automatically. Use a permanent method if you need it off for longer.
  • Editing the wrong registry key: Ensure you are in HKEY_LOCAL_MACHINE, not HKEY_CURRENT_USER.
  • Forgetting to re-enable: If you disable Defender permanently, you must have another antivirus installed. Otherwise, your PC is unprotected.

Tips

  • Before disabling, install and update a third-party antivirus if you intend to keep Defender off.
  • Create a system restore point before making registry changes so you can revert if something goes wrong.
  • If you only need to disable Defender temporarily for a specific task (e.g., installing software), use the Settings toggle and re-enable it when done.
  • Check that no other security software is conflicting with Defender; sometimes Defender turns itself off automatically when another AV is detected.

Troubleshooting

  • Defender turns back on after a restart: This is normal for the Settings toggle. Use the Group Policy or Registry method to keep it off permanently.
  • Group Policy change doesn’t work: Make sure you are on the correct edition (Pro or higher). Also, verify that the policy is set to Enabled and not Not Configured.
  • Registry value doesn’t disable Defender: In some Windows 10 versions, the DisableAntiSpyware value is ignored. Try the Group Policy method or use PowerShell.
  • PowerShell command fails: Run PowerShell as Administrator. If you get an error, check that the Defender service is running and that you have permission to change its settings.
  • Defender still shows in the taskbar: The icon may remain, but the real-time protection is off. Check the status in Windows Security.

Frequently Asked Questions

Is it safe to disable Windows Defender?

No, it leaves your PC vulnerable to malware unless you have another antivirus installed. Use it only temporarily or as a last resort.

Will Windows Update re-enable Defender?

Yes, major Windows updates can reset Defender settings. You may need to reapply the disable method after an update.

Can I disable Defender on Windows Home?

Yes, you can use the Registry method or temporarily disable real-time protection via Settings.

How do I re-enable Defender?

Reverse the method you used: set the Group Policy to “Not Configured,” delete the registry value, or run Set-MpPreference -DisableRealtimeMonitoring $false in PowerShell.

Why does Defender keep turning back on?

Windows has built-in tamper protection that restores Defender settings. You may need to disable tamper protection first in Windows Security > Virus & threat protection > Manage settings.

Does disabling Defender improve performance?

It can reduce background resource usage, but the impact is usually minimal on modern hardware. The security risk is generally not worth it.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →