Enable EDR in block mode
Activer EDR en mode blocage
Explanation
This policy setting enables or disables EDR in block mode (also known as "passive remediation"). EDR in block mode is recommended for devices running Microsoft Defender Antivirus in passive mode. Available with platform release: 4.18.2202.X
The data type is integer
Supported values:
1: Turn EDR in block mode on
0: Turn EDR in block mode off
Ce paramètre de stratégie active ou désactive EDR en mode de blocage (également appelé « correction passive »). EDR en mode blocage est recommandé pour les appareils exécutant Microsoft Defender Antivirus en mode passif. Disponible avec la version de plateforme : 4.18.2202.X
Le type de données est un entier
Valeurs prises en charge :
1 : Activer EDR en mode blocage
0 : Désactiver EDR en mode blocage
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Features- Value name
PassiveRemediation
| 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/Features_PassiveRemediation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Features'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PassiveRemediation' -Value 1 -Type DWordDisable
# Disable: WindowsDefender/Features_PassiveRemediation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Features'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PassiveRemediation' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsDefender/Features_PassiveRemediation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Features'
Remove-ItemProperty -Path $k -Name 'PassiveRemediation' -ErrorAction SilentlyContinue