从网上找到的,确实可以用
%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,137,138,139echo. netsh advfirewall firewall add rule name = Disable port 135 - UDP dir = in action = block protocol = UDP localport = 135,137,138,139echo. echo 正在关闭445端口 请稍候… netsh advfirewall firewall add rule name = Disable port 445 - TCP dir = in action = block protocol = TCP localport = 445echo. netsh advfirewall firewall add rule name = Disable port 445 - UDP dir = in action = block protocol = UDP localport = 445echo.echo 按任意键退出 pausenul把这个代码复制到记事本里面另存为 禁用.bat 运行就行了。
取消
评论