en-US windows computer

Windows Defender Firewall: Allow local program exceptions

Verified with Windows 11 25H2 — updated on July 10, 2026

Windows 11 25H2

Supported on: At least Windows XP Professional with SP2

Path in the GPO console

Computer Configuration\Administrative Templates\Network\Network Connections\Windows Defender Firewall\Standard Profile

Description

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.

Registry

HKLM SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\AuthorizedApplications

Value name: AllowUserPrefMerge

Enabled: AllowUserPrefMerge = 1

Disabled: AllowUserPrefMerge = 0

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Windows Defender Firewall: Allow local program exceptions
; State: Enabled
; Supported on: At least Windows XP Professional with SP2

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\AuthorizedApplications]
"AllowUserPrefMerge"=dword:00000001
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Windows Defender Firewall: Allow local program exceptions
# State: Enabled
# Supported on: At least Windows XP Professional with SP2

$path = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\AuthorizedApplications'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'AllowUserPrefMerge' -Value 1 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview