Convertir le verdict d’avertissement en bloc
Convert warn verdict to block
Explication
La protection réseau inspecte le trafic réseau et détermine si elle autorise ou bloque le trafic ou affiche un avertissement.
Désactivée (par défaut) :
Si elle est réglée sur Non configurée ou Désactivée, la protection réseau affiche un avertissement pour les avertissements.
Activée :
Si ce paramètre est Activée, la protection réseau bloque le trafic réseau au lieu d’afficher un avertissement.
Network protection inspects network traffic and determines whether it allows or blocks traffic or displays a warning.
Disabled (Default):
If Not Configured or Disabled, network protection will display a warning for warn verdicts.
Enabled:
If this setting is Enabled, network protection blocks network traffic instead of displaying a warning.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\NIS- Nom de la valeur
EnableConvertWarnToBlock
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : WindowsDefender/EnableConvertWarnToBlock
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\NIS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableConvertWarnToBlock' -Value 1 -Type DWordDésactiver
# Désactiver : WindowsDefender/EnableConvertWarnToBlock
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\NIS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableConvertWarnToBlock' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WindowsDefender/EnableConvertWarnToBlock
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\NIS'
Remove-ItemProperty -Path $k -Name 'EnableConvertWarnToBlock' -ErrorAction SilentlyContinue