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
0 comments
Hide comments