win10 bat文件强制获取管理员权限

只需要在.bat脚本中添加一下代码 即可实现 以管理员身份运行 强制获取管理员运行权限

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

猜你喜欢

转载自blog.csdn.net/weixin_40461281/article/details/105100703