PowerTip: Use PowerShell to Display Inbound Firewall Rules

PowerTip: Use PowerShell to Display Inbound Firewall Rules

  • Comments 4
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • What about ports and scopes?