Can't disable Windows Defender via Group Policy or the Registry

This didn't work; Windows Defender, and it's modules, remained active.

HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpyware 

Has Microsoft changed something in the latest release that prevents users from turning Windows Defender off?

8,399 7 7 gold badges 31 31 silver badges 50 50 bronze badges asked Nov 10, 2019 at 4:09 333 2 2 gold badges 3 3 silver badges 12 12 bronze badges

10 Answers 10

I found the solution. It turns out that Windows Defender is so ingrained within Windows 10 that it comes with its own "anti-tamper" protection.

This does two things: prevents you from creating the registry key in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender by giving you a generic error message and also renders the group policy change ineffective.

In order to disable this, I had to follow these instructions:

  1. Go to Virus & threat protection
  2. Click on Manage Settings
  3. Turn off Tamper Protection
  4. Proceed to enable the group policy Turn off Windows Defender Antivirus in Computer Configuration/Administrative Templates/Windows Components/Windows Defender Antivirus or add the registry key.
  5. Restart PC
answered Nov 10, 2019 at 4:44 333 2 2 gold badges 3 3 silver badges 12 12 bronze badges

Note: Some versions of W10 do not have group policy editor, in this case you will have to edit the registry manually.

Commented Nov 10, 2019 at 13:57

The group policy and the DisableAntiSpyware registry key are now deprecated. Windows reset them automatically after restart.

Commented Jun 4 at 14:41

In Windows 10 21H1 switching Tampering protection off in Security Center widget and then setting Turn off Microsoft Defender Antivirus policy in gpedit.msc results in:

So this method switches off virus protection but not Defender's services.

Another way to switch off Microsoft Defender with different results:

  1. Disable Windows Security Center (wscsvc) service using registry editor : set "Start" to 4. It is impossible (I didn't manage) to change this value via Services snap-in, "sc" utility etc.
  2. Reboot.
  3. Run gpedit.msc and set Turn off Microsoft Defender Antivirus policy setting to "On". After few seconds Microsoft Defender Antivirus (WinDefend) service start value automatically changes from 2(auto) to 3(manual).

This Microsoft article says that Turn off Microsoft Defender Antivirus policy ( DisableAntiSpyware=dword:00000001 ) since recently works only on servers, not on clients. But in fact it works on clients but in pretty sophisticated way:)