1

Is it possible to create script which enable/disable the first checkbox of windows 7 firewall settings (Block all incoming connections....)?

enter image description here

gaffcz
  • 253

1 Answers1

2

enable:

netsh advfirewall set domainprofile firewallpolicy blockinboundalways,allowoutbound

disable:

netsh advfirewall set domainprofile firewallpolicy blockinbound,allowoutbound
gaffcz
  • 253