Windows firewall - block all incoming connections enable/disable - CREATE SCRIPT

0

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

Posted 2014-07-10T10:03:40.143

Reputation: 233

Answers

1

enable:

netsh advfirewall set domainprofile firewallpolicy blockinboundalways,allowoutbound

disable:

netsh advfirewall set domainprofile firewallpolicy blockinbound,allowoutbound

gaffcz

Posted 2014-07-10T10:03:40.143

Reputation: 233