Enumerate

Get-NetFirewallProfile

Config of all firewall profiles (Domain, Private, and Public)

Get-NetFirewallRule

Gets all the inbound and outbound rules configured in the Windows Firewall

Get-NetFirewallSetting

Retrieves the global settings of the Windows Firewall

Get-NetFirewallProfile -PolicyStore ActiveStore

Retrieves config of all active firewall profiles directly from the currently applied policy store

netsh advfirewall firewall show rule name=all

View firewall configuration

netsh advfirewall show currentprofile

Show which profiles are active

netsh advfirewall show allprofiles

Shows the configuration of all firewall profiles (Domain, Private, and Public).

netsh advfirewall firewall show rule profile=private name=all

All Private Profile rules.

netsh advfirewall firewall show rule profile=public name=all

All Public Profile rules.

netsh advfirewall firewall show rule profile=domain name=all

All Domain Profile rules.

netsh advfirewall firewall show rule name=all

Lists all inbound and outbound rules

netsh advfirewall firewall show rule name="<RuleName>"

Confirm if rule exists

netsh advfirewall monitor show firewall

Shows the current operational state and statistics of the firewall using netsh.

netsh firewall show config

Shows the configuration of the Windows Firewall for older versions of Windows

netsh advfirewall firewall show rule group="Windows Defender Firewall" verbose

Lists the rules associated with the Windows Defender Firewall group

Last updated

Was this helpful?