Check whether the Windows firewall is enabled
Show the on/off state of all three firewall profiles with one netsh command.
01Command
$ netsh advfirewall show allprofiles state02What it does
Windows has three firewall profiles, and the active one depends on the current network category; malware and "tweaks" sometimes disable them. This command prints the state of all three at once. To turn a profile back on, run `netsh advfirewall set allprofiles state on`.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Get-NetFirewallProfileEvidence: Returns Domain, Private and Public firewall profiles with their Enabled state.
- netshEvidence: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.
Two-step command sequence that makes you the owner of a locked file tree and grants yourself full control — the standard fix for 'Access is denied' on old profiles and OS reinstall leftovers.
Built-in Windows command to compute MD5, SHA1 or SHA-256 hashes of any file.