Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to List Firewall Rules

$
0
0

Summary: Use Windows PowerShell to list firewall rules configured in Windows Server 2012 R2.

Hey, Scripting Guy! Question How can I use Windows PowerShell to show the inbound firewall rules in Windows Server 2012 R2 that are enabled?

Hey, Scripting Guy! Answer Use the Get-NetFirewallRule cmdlet to get the entire list, and then
          filter on the Enabled and Direction properties:

Get-NetFirewallRule | Where { $_.Enabled –eq ‘True’ –and $_.Direction –eq ‘Inbound’ }


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>