windows防火墙一键禁用135,137,138,139,445端口脚本

OneOne 2021-01-06 AM 197℃ 0条

20210106000451.png
保存以下脚本,命名为xxx.bat 管理员模式运行即可

@echo off
netsh advfirewall firewall add rule name=BlockPort_135_137_138_139_445 dir=in action=block protocol=tcp localport=135,137,138,139,445
pause

netsh advfirewall firewall add rule name=BlockPort_135_137_138_139_445 dir=in action=block protocol=udp localport=135,137,138,139,445
pause
exit

一键禁用445端口脚本下载地址:
https://img-1251343945.file.myqcloud.com/usr/uploads/2021/01/%E7%A6%81%E7%94%A8%E7%AB%AF%E5%8F%A3_135_137_138_139_445.bat

非特殊说明,本博所有文章均为博主原创。

评论啦~