关闭windows 防火墙

C:\Windows\System32\netsh.exe advfirewall set allprofiles state off

 

打开windows 防火墙

C:\Windows\System32\netsh.exe advfirewall set allprofiles state on

 

上面两行命令分别设置成快捷方式,且以管理员方式运行,单击即可实现打开、关闭的功能。

posted on 2021-08-17 13:57  胡彼德  阅读(1329)  评论(0编辑  收藏  举报