Bye Windows Defender, I need to turn you back off again

Disable Windows Defender with Local Group Policy Settings

To Turn On or Off Windows Defender using Group Policy

  1. Open the Local Group Policy Editor.

  2. In the left pane of Local Group Policy Editor, navigate to the location below. (see screenshot below)

    Computer Configuration/Administrative Templates/Windows Components/Windows Defender

    enter image description here

  3. In the right pane of Windows Defender in Local Group Policy Editor, double click/tap on the Turn off Windows Defender policy to edit it. (see screenshot above)

  4. Do step 5 (on) or step 6 (off) below for what you would like to do.

  5. To Turn On Windows Defender

    A) Select (dot) Not Configured or Disabled, click/tap on OK, and go to step 7 below. (see screenshot below)

    NOTE: Not Configured is the default setting.

  6. To Turn Off Windows Defender

    A) Select (dot) Enabled, click/tap on OK, and go to step 7 below. (see screenshot below)

    enter image description here

  7. When finished, you can close the Local Group Policy Editor if you like.

  8. If you are turning on Windows Defender, then open Windows Defender, and click/tap on Start now if needed. (screenshot below)

source

Restart the Computer afterwards to confirm and ensure everything becomes effective.


The safest way to do this is to uninstall Avast! (in Programs and Features) and then to reinstall it. That will ensure that MS hasn't removed any part of the Avast! suite's protection. Reinstalling Avast! will then disable Defender correctly.

Merely shutting Windows Defender does not guarantee that third-party AV will be working properly.

Postscript: As has noted in comments, recent Windows updates reinstall Defender, even though third-party AV has already been installed. There is not much impact, I find, except on cold boot, but scheduled scans can be disabled in Scheduled Tasks. For example, using Nisoft's TaskSchedulerView, right-click on an item and select Disable.

Windows Defender scheduled scan

Also turn off scans and the alert message in the Windows Defender Security Center that Defender.

Insecurity Center alerts


Disable Windows Defender with Local Registry Settings

If you're not able to use Group Policy then see To Turn On or Off Windows Defender using a REG file.

WARNING: Before working in the Windows Registry, it is always a good idea to back it up first, so that you have the option of restoration, should something go wrong. This article shows the different ways to back up and restore the Windows Registry or its Hives.

To Turn On or Off Windows Defender using a REG file -

The .reg files below will add and modify the DWORD value in the registry key below.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

DisableAntiSpyware DWORD

(delete) = On
1 = Off

To hide Windows Defender notification icon: (when turned off)

Code:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Windows Defender"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run]
"Windows Defender"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"WindowsDefender"=-

To show Windows Defender notification icon: (when turned on)

Code:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Windows Defender"="\"C:\\Program Files\\Windows Defender\\MSASCui.exe\" -hide"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run]
"WindowsDefender"=hex:06,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"WindowsDefender"=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,\
  46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
  00,73,00,20,00,44,00,65,00,66,00,65,00,6e,00,64,00,65,00,72,00,5c,00,4d,00,\
  53,00,41,00,53,00,43,00,75,00,69,00,4c,00,2e,00,65,00,78,00,65,00,22,00,00,\
  00

  1. Do step 2 (on) or step 3 (off) below for what you would like to do.

  2. To Turn On Windows Defender

NOTE: This is the default setting.

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Turn_On_Windows_Defender.reg: Download

  1. To Turn Off Windows Defender

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Turn_Off_Windows_Defender.reg: Download

  1. Save the .reg file to your desktop.

  2. Double click/tap on the downloaded .reg file to merge it.

  3. If prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

  4. If you are turning off Windows Defender, sign out and sign in to apply.

  5. If you are turning on Windows Defender, then open Windows Defender to apply.

  6. If you like, you can now delete the downloaded .reg file.

source