18,138
社区成员
发帖
与我相关
我的任务
分享
@ echo off
%1 %2
ver|find "5.">nul&&goto :st
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close)&goto :eof
:st
copy "%~0" "%windir%\system32\"
netsh interface set interface name="WLAN" admin=enable
这样可以,但是会弹出UAC确认窗口,这是系统安全机制,暂时无法绕开这个环节。
[/quote]
更正一下,直接用netsh interface set interface name="WLAN" admin=disable和netsh interface set interface name="WLAN" admin=enable,不要更改名称
[/quote]