Check firewall exceptions using PowerShell

Check for firewall exceptions using PowerShell

John Savill

September 1, 2016

1 Min Read
Check firewall exceptions using PowerShell

Q. How can I check if firewall exceptions are enabled using PowerShell?

A. Using the Get-NetFirewallRule cmdlet you can easily check for specific exceptions and view their status. For example to view all DNS related firewall exceptions I would use:

Get-NetFirewallRule | where {$_.Name -like "*DNS*"} | fl Name,Enabled,Profile,Direction

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like