管理员启动dos窗口
开启防火墙:
netsh advfirewall set allprofiles state on
关闭防火墙:
netsh advfirewall set allprofiles state off