win10 同步批處理禁用和啟用網卡


 

 

@ echo off
echo 正在啟用超級管理員權限... 

%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\"

echo 啟用超級管理員權限成功 

netsh interface set interface "以太網" disabled
netsh interface set interface "以太網" enabled

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM