Need to check whether Windows Firewall is enabled - across the different network profiles (Domain, Private, Public)? This one-liner pulls the status straight from the system.
Prerequisites:
* Privileges: None
* Module: Built-in, no import needed
Quick Command:
Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, DefaultOutboundAction
Example Output:
Name Enabled DefaultInboundAction