win bat关闭防火墙

win bat关闭防火墙

@echo off

::强制获取管理员运行权限
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

echo 关闭防火墙
netsh firewall set opmode mode=disable profile=ALL 1>nul 2>nul
netsh firewall set opmode mode=disable 1>nul 2>nul
netsh advfirewall set allprofiles state off 1>nul 2>nul

你可能感兴趣的:(服务器,linux,前端)