Skip to content

Instantly share code, notes, and snippets.

@AlexFielder
Created September 20, 2016 09:07
Show Gist options
  • Save AlexFielder/898d2c8cd0d06698f83f9c3ac2aca67d to your computer and use it in GitHub Desktop.
Save AlexFielder/898d2c8cd0d06698f83f9c3ac2aca67d to your computer and use it in GitHub Desktop.
Export firewall rules to csv - PORTS ONLY (ALL Information)
get-netfirewallrule | Get-NetFirewallPortFilter | export-csv "C:\path\to\script\output-PORTS_ONLY.csv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment