Open in the explorer

Turn off Microsoft Defender Antivirus

Désactiver l’antivirus Microsoft Defender

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/DisableAntiSpywareDefender

Explanation

This policy setting turns off Microsoft Defender Antivirus.

If you enable this policy setting, Microsoft Defender Antivirus does not run, and will not scan computers for malware or other potentially unwanted software.

If you disable this policy setting, Microsoft Defender Antivirus will run regardless of any other installed antivirus product.

If you do not configure this policy setting, Windows will internally manage Microsoft Defender Antivirus. If you install another antivirus program, Windows automatically disables Microsoft Defender Antivirus. Otherwise, Microsoft Defender Antivirus will scan your computers for malware and other potentially unwanted software.

Enabling or disabling this policy may lead to unexpected or unsupported behavior. It is recommended that you leave this policy setting unconfigured.

French text from Windows 11 26H2

Ce paramètre de stratégie désactive l’antivirus Microsoft Defender.

Si vous activez ce paramètre de stratégie, l’antivirus Microsoft Defender ne s’exécute pas et ne recherche pas de programmes malveillants ou autres logiciels potentiellement indésirables.

Si vous désactivez ce paramètre de stratégie, l’antivirus Microsoft Defender s’exécute, indépendamment d’éventuels autres antivirus installés.

Si vous ne configurez pas ce paramètre de stratégie, Windows gère en interne l’antivirus Microsoft Defender. Si vous installez un autre antivirus, Windows désactive automatiquement l’antivirus Microsoft Defender. Dans le cas contraire, l’antivirus Microsoft Defender analyse vos ordinateurs pour y rechercher des programmes malveillants ou d'autres logiciels potentiellement indésirables.

L’activation ou la désactivation de cette stratégie peut entraîner un comportement inattendu ou non pris en charge. Nous vous recommandons de ne pas configurer ce paramètre de stratégie.

Use cases

Turns the Microsoft Defender antivirus off entirely when enabled. Microsoft recommends leaving it unconfigured: when not configured, Windows manages Defender itself and turns it off automatically if another antivirus is installed, whereas disabling the policy (value 0) forces Defender to run alongside another product.

The setting is not applied while Tamper Protection is on, which is the case on many recent estates: a GPO claiming to switch Defender off may therefore have no effect. To coexist with a third-party EDR, let Windows manage Defender’s state rather than forcing this setting.

Microsoft sources: Policy CSP - ADMX_MicrosoftDefenderAntivirus · Tamper protection overview

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender
Value name
DisableAntiSpyware
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsDefender/DisableAntiSpywareDefender
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAntiSpyware' -Value 1 -Type DWord

Disable

# Disable: WindowsDefender/DisableAntiSpywareDefender
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAntiSpyware' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/DisableAntiSpywareDefender
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'DisableAntiSpyware' -ErrorAction SilentlyContinue

Availability