Windows10 使用运行打开管理员模式CMD命令提示符

新建一个bat 命名为cmdd.bat 将cmdd.bat放到system32目录下 然后在运行输入cmdd即可

@echo off
::if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
bcdedit >nul
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
::exit /B
echo 获取管理员权限失败
echo 获取管理员权限成功
cd /
cd %~dp0
start "cmd.exe"
Last modification:November 20th, 2019 at 04:04 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment