Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlexFielder/1cb711898b9271749d9a44d8f048b9f5 to your computer and use it in GitHub Desktop.
Save AlexFielder/1cb711898b9271749d9a44d8f048b9f5 to your computer and use it in GitHub Desktop.
Export Windows Firewall rules to human readable csv file - PORTS ONLY (Filtered columns!)
get-netfirewallrule | Get-NetFirewallPortFilter | select-object Protocol, LocalPort, RemotePort,
InstanceID, CreationClassName | export-csv "C:\path\to\script\output-PORTS_Filtered.csv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment