Ouvrir dans l'explorateur

Convertir le verdict d’avertissement en bloc

Convert warn verdict to block

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Système NIS (Network Inspection System) EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Network Inspection System
Pris en charge sur
Windows Server 2016, Windows 10 version 1709 ou versions supérieures EN : At least Windows Server 2016, Windows 10 Version 1709
Fichier ADMX
WindowsDefender.admx
Nom interne
WindowsDefender/EnableConvertWarnToBlock

Explication

Texte français issu de Windows 11 26H2

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
ÉtatValeur é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 DWord

Dé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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsDefender/EnableConvertWarnToBlock
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\NIS'
Remove-ItemProperty -Path $k -Name 'EnableConvertWarnToBlock' -ErrorAction SilentlyContinue

Disponibilité

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016