PowerTip: Use PowerShell to Display Inbound Firewall Rules

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

Comments (1)

  1. RogerDodger says:

    What about ports and scopes?

Skip to main content