Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR POWERSHELL

powershell display firewall rules name

Get-NetFirewallRule -Direction OutBound -Action Block -Enable True |
Format-Table -Property Name,
DisplayName,
DisplayGroup,
@{Name='Protocol';Expression={($PSItem | Get-NetFirewallPortFilter).Protocol}},
@{Name='LocalPort';Expression={($PSItem | Get-NetFirewallPortFilter).LocalPort}},
@{Name='RemotePort';Expression={($PSItem | Get-NetFirewallPortFilter).RemotePort}},
@{Name='RemoteAddress';Expression={($PSItem | Get-NetFirewallAddressFilter).RemoteAddress}},
Enabled,
Profile,
Direction
 
PREVIOUS NEXT
Tagged: #powershell #display #firewall #rules
ADD COMMENT
Topic
Name
7+3 =