Open in the explorer

Windows Defender Firewall: Prohibit notifications

Pare-feu Windows Defender : empêcher les notifications

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Network Connections › Windows Defender Firewall › Standard Profile FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Connexions réseau › Pare-feu Windows Defender › Profil standard
Supported on
At least Windows XP Professional with SP2 FR: Au minimum Windows XP Professionnel avec SP2
ADMX file
WindowsFirewall.admx
Internal name
WindowsFirewall/WF_Notifications_Name_2

Explanation

Prevents Windows Defender Firewall from displaying notifications to the user when a program requests that Windows Defender Firewall add the program to the program exceptions list.

If you enable this policy setting, Windows Defender Firewall prevents the display of these notifications.

If you disable this policy setting, Windows Defender Firewall allows the display of these notifications. In the Windows Defender Firewall component of Control Panel, the "Notify me when Windows Defender Firewall blocks a new program" check box is selected and administrators cannot clear it.

If you do not configure this policy setting, Windows Defender Firewall behaves as if the policy setting were disabled, except that in the Windows Defender Firewall component of Control Panel, the "Notify me when Windows Defender Firewall blocks a new program" check box is selected by default, and administrators can change it.

French text from Windows 11 26H2

Empêche le Pare-feu Windows Defender d'afficher des notifications à l'utilisateur lorsqu'un programme demande que le Pare-feu Windows Defender ajoute le programme à la liste des exceptions de programmes.

Si vous activez ce paramètre de stratégie, le Pare-feu Windows Defender empêchera l'affichage de ces notifications.

Si vous le désactivez, le Pare-feu Windows Defender autorisera l'affichage de ces notifications. Dans le composant Pare-feu Windows Defender du Panneau de configuration, la case à cocher « Me prévenir lorsque le Pare-feu Windows Defender bloque un nouveau programme » sera activée, et les administrateurs ne pourront pas la désactiver.

Si vous ne configurez pas ce paramètre de stratégie, le Pare-feu Windows Defender se comportera comme si le paramètre de stratégie était désactivé, sauf que dans le composant Pare-feu Windows Defender du Panneau de configuration, la case à cocher « Me prévenir lorsque le Pare-feu Windows Defender bloque un nouveau programme » sera activée par défaut et les administrateurs pourront la modifier.

Registry

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

Disable

# Disable: WindowsFirewall/WF_Notifications_Name_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableNotifications' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsFirewall/WF_Notifications_Name_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile'
Remove-ItemProperty -Path $k -Name 'DisableNotifications' -ErrorAction SilentlyContinue

Availability