是否可以创建脚本来启用/禁用 Windows 7 防火墙设置的第一个复选框(Block all incoming connections....
)?
答案1
使能够:
netsh advfirewall set domainprofile firewallpolicy blockinboundalways,allowoutbound
禁用:
netsh advfirewall set domainprofile firewallpolicy blockinbound,allowoutbound