Windows Firewall Registry Paths for Rules and States

This article details the exact Windows Registry locations used to store Windows Defender Firewall profile states and active firewall rules. By navigating the Windows Registry Editor (regedit), administrators can view, troubleshoot, or audit the operational states of Domain, Private, and Public profiles, as well as the complete set of inbound and outbound firewall rules.

Registry Path for Firewall Profile States

The overall state and behavior settings for each network profile (Domain, Private, and Public) are located under the following parent path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

Inside this key, you will find three distinct subkeys corresponding to each network profile:

Key Values within Profile Subkeys:


Registry Path for Firewall Rules

Active custom and system firewall rules are stored in a dedicated subkey under the same policy tree:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules

Each value in this registry key represents an individual firewall rule. The value names are typically generated GUIDs or rule identifiers, and the value data is a formatted string containing all configuration parameters for that rule, including:


Registry Path for Restricted Services Rules

Rules specifically tied to Windows services and modern store applications are maintained in separate subkeys: