Open in the explorer

Turn off Auto Exclusions

Désactiver les exclusions automatiques

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

Explanation

Allows an administrator to specify if Automatic Exclusions feature for Server SKUs should be turned off.

Disabled (Default):
Microsoft Defender will exclude pre-defined list of paths from the scan to improve performance.

Enabled:
Microsoft Defender will not exclude pre-defined list of paths from scans. This can impact machine performance in some scenarios.

Not configured:
Same as Disabled.

French text from Windows 11 26H2

Autorise un administrateur à spécifier si la fonctionnalité Exclusions automatiques pour les serveurs SKU doit être désactivée.

Désactivé (par défaut) :
Microsoft Defender exclut de l'analyse la liste prédéfinie des chemins d'accès pour améliorer les performances.

Activé :
Microsoft Defender n'exclut pas de l'analyse la liste prédéfinie des chemins d'accès. Cela peut avoir un impact sur les performances de l'ordinateur dans certains cas.

Non configuré :
Identique à Désactivé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Exclusions
Value name
DisableAutoExclusions
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/DisableAutoExclusions
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Exclusions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAutoExclusions' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

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

Availability