Tools
Log in
English

Learn to codeSecurity check

Windows Firewall is off

HighW03Windows PCs and servers

Turn the firewall on for the Domain, Private and Public profiles and open only…

What is the risk

With the firewall off, ports meant for local use (SMB, Remote Desktop, databases) are open.

If even one profile is off, you are exposed whenever you join that kind of network.

How to check

Windows PowerShell (admin)

Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction

How to fix

Windows PowerShell (admin)

Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28752"
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

If you are connected over Remote Desktop, the first line enables the Remote Desktop rules first (this name works in every Windows language). Then turn on all three profiles.

How to prevent it

  • Keep the default for inbound connections set to Block.
  • Allow Remote Desktop and SMB only from known IPs (W04).

Check again after fixing

Windows PowerShell (admin)

Get-NetFirewallProfile | Select-Object Name, Enabled

All three should be True.

Run the downloaded check again and make sure this item passes.

Security check home