新建一个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)
:UACPrompt
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
::exit /B
echo 获取管理员权限失败
pause
:UACAdmin
echo 获取管理员权限成功
cd /
cd %~dp0
start "cmd.exe"