← script library

Check Windows Firewall Status with PowerShell

Security & AuditingAugust 17, 2026

A read-only two-liner that lists each firewall profile and whether it is enabled. Run it across a whole server group when you need an answer to the auditor's question before you start changing anything.

powershell
# Get current Firewall Profiles
#----------------------------------------

Get-NetFirewallProfile | Select-Object Name, Enabled

Run it across your fleet

This script runs as-is on a single host. Paste it into ServerEngine to schedule it, run it on a whole server group in parallel, and keep the credentials out of the file — see the scripts documentation and the credential store.

Ready when you are.

Try ServerEngine free for 7 days.