Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 430 Bytes

File metadata and controls

19 lines (15 loc) · 430 Bytes

netsh advfirewall

See Current State

netsh advfirewall show currentprofile
#turn off 
netsh advfirewall set allprofiles state off
#turn on 
netsh advfirewall set allprofiles state on 

Turn Firewall on or off

Get-NetFirewallProfile | Select Name, Enabled
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True