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

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

enable:
netsh advfirewall set domainprofile firewallpolicy blockinboundalways,allowoutbound
disable:
netsh advfirewall set domainprofile firewallpolicy blockinbound,allowoutbound