Created
September 20, 2016 09:10
-
-
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!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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