关闭135445端口命令_电脑135和445端口怎么关闭

关闭135445端口命令_电脑135和445端口怎么关闭1 mshta vbscript CreateObject Shell Application ShellExecute cmd exe c s0 runas 1 window close amp amp exit echo off color 1f title 关闭 135 445 端口 echo echo


%1 mshta vbscript:CreateObject(“Shell.Application”).ShellExecute(“cmd.exe”,”/c %~s0 ::”,””,”runas”,1)(window.close)&&exit

@echo off

color 1f

title 关闭135 445 端口

echo.

echo.

echo.

echo 正在关闭135端口 请稍候…

netsh advfirewall firewall add rule name = “Disable port 135 – TCP” dir = in action = block protocol = TCP localport = 135

echo.

netsh advfirewall firewall add rule name = “Disable port 135 – UDP” dir = in action = block protocol = UDP localport = 135

echo.

echo 正在关闭445端口 请稍候…

netsh advfirewall firewall add rule name = “Disable port 445 – TCP” dir = in action = block protocol = TCP localport = 445

echo.

netsh advfirewall firewall add rule name = “Disable port 445 – UDP” dir = in action = block protocol = UDP localport = 445

echo.

echo 按任意键退出

pause>nul

把这段代码 保存成 .bat 然后运行就可以了

:%记得打开时关闭防火墙 关闭360
:%记得打开时关闭防火墙 关闭360%

编程小号
上一篇 2025-01-17 23:51
下一篇 2025-01-17 23:40

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/hz/148579.html