Open in the explorer

Windows Defender Firewall: Allow local program exceptions

Pare-feu Windows Defender : autoriser les exceptions de programmes locaux

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Network Connections › Windows Defender Firewall › Domain Profile FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Connexions réseau › Pare-feu Windows Defender › Profil du domaine
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_AllowedProgramsLocal_Name_1

Explanation

Allows administrators to use the Windows Defender Firewall component in Control Panel to define a local program exceptions list. Windows Defender Firewall uses two program exceptions lists; the other is defined by the "Windows Defender Firewall: Define inbound program exceptions" policy setting.

If you enable this policy setting, the Windows Defender Firewall component in Control Panel allows administrators to define a local program exceptions list.

If you disable this policy setting, the Windows Defender Firewall component in Control Panel does not allow administrators to define a local program exceptions list. However, local administrators will still be allowed to create firewall rules in the Windows Defender Firewall with Advanced Security snap-in. If you wish to prevent all locally created rules from applying, use the Group Policy Object Editor snap-in and configure Computer Configuration\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security to specify that local firewall rules should not apply.

French text from Windows 11 26H2

Permet aux administrateurs d'utiliser le composant Pare-feu Windows Defender du Panneau de configuration afin de définir une liste d'exceptions de programmes locaux. Le Pare-feu Windows Defender utilise deux listes d'exceptions de programmes ; la deuxième est définie par le paramètre de stratégie « Pare-feu Windows Defender : définir les exceptions de programmes entrants ».

Si vous activez ce paramètre de stratégie, le composant Pare-feu Windows Defender du Panneau de configuration autorisera les administrateurs à définir une liste d'exceptions de programmes locaux.

Si vous désactivez ce paramètre de stratégie, le composant Pare-feu Windows Defender du Panneau de configuration n'autorisera pas les administrateurs à définir une liste d'exceptions de programmes locaux. Toutefois, les administrateurs locaux seront toujours autorisés à créer des règles de pare-feu dans le composant logiciel enfichable Pare-feu Windows Defender avec fonctions avancées de sécurité. Si vous souhaitez empêcher l'application de toutes les règles créées localement, utilisez le composant logiciel enfichable Éditeur d'objets de stratégie de groupe et configurez le Pare-feu Windows Defender avec fonctions avancées de sécurité (Configuration ordinateur\Paramètres Windows\Paramètres de sécurité) de sorte que les règles de pare-feu locales ne soient pas appliquées.

Use cases

Decides whether firewall rules created locally (by a local administrator or an application installer) are merged with those from the GPO. Disabled, only what you push by GPO applies, which guarantees a consistent policy.

This can break applications that add their own rules at install time: inventory them and push the needed rules by GPO before disabling.

Microsoft source: Configure Windows Firewall rules with Group Policy

Registry

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

Disable

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

Revert to "Not configured"

# Revert to "Not configured": WindowsFirewall/WF_AllowedProgramsLocal_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\AuthorizedApplications'
Remove-ItemProperty -Path $k -Name 'AllowUserPrefMerge' -ErrorAction SilentlyContinue

Availability