I wrote a very simple helper function (you can use it as cmdlet in own module) to simplify work with Get-NetFirewallRule cmdlet.


Get FW rules from remote server based on multiple protocols and ports

Get-RvNetFirewallRule -Protocol TCP, UDP -LocalPort @(135..138) -CimSession MyRemoteServer |


Get disabled rule from the local server based on specified protocol and port

Get-RvNetFirewallRule -Protocol TCP -LocalPort 135 -Enabled:$false |

Format-Table …

Read More