保存以下脚本,命名为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.cos.ap-guangzhou.myqcloud.com/usr/uploads/2021/01/%E7%A6%81%E7%94%A8%E7%AB%AF%E5%8F%A3_135_137_138_139_445.bat
评论 (0)