Turn off Auto Exclusions
Désactiver les exclusions automatiques
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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