Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Coldblackice/143958007ac34213a98698205f0ea89e to your computer and use it in GitHub Desktop.

Select an option

Save Coldblackice/143958007ac34213a98698205f0ea89e 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