January 4th, 2014

PowerTip: Use PowerShell to Display Inbound Firewall Rules

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to display inbound firewall rules.

Hey, Scripting Guy! Question How can I use  Windows PowerShell to display the enabled inbound firewall rules for my Windows 8.1 laptop?

Hey, Scripting Guy! Answer Use the Show-NetFirewallRule function, filter on the Enabled and the Direction properties,
          and select the display name for readability:

Show-NetFirewallRule | where {$_.enabled -eq ‘true’ -AND $_.direction -eq ‘inbound’}| select displayname

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.