Windows Defender Firewall: Prohibit notifications
Pare-feu Windows Defender : empêcher les notifications
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.
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\DomainProfile- Value name
DisableNotifications
| 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: WindowsFirewall/WF_Notifications_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableNotifications' -Value 1 -Type DWordDisable
# Disable: WindowsFirewall/WF_Notifications_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableNotifications' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsFirewall/WF_Notifications_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile'
Remove-ItemProperty -Path $k -Name 'DisableNotifications' -ErrorAction SilentlyContinue