Forked from AlexFielder/exportportfilteredfirewallrules_KeyColumns.ps1
Created
September 4, 2025 08:47
-
-
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!)
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