November 13th, 2012

PowerTip: Use PowerShell to Find Domain-Enabled Firewall Rules

Doctor Scripto
Scripter

Summary: Learn how to identify domain firewall rules by using Windows PowerShell 3.0 on Windows 8 or Windows Server 2012.

Hey, Scripting Guy! Question How can I find specific Domain profile firewall rules on my computer running Windows 8 or Windows Server 2012?

Hey, Scripting Guy! Answer Use the Get-NetFirewallRule cmdlet and specify the enabled parameter as true and filter on the domain profile, as shown here.

Get-NetFirewallRule -Enabled true | Where profile -eq ‘Domain’

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback