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.
Check for firewall exceptions using PowerShell
September 1, 2016
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
You May Also Like