- >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
- if '%errorlevel%' NEQ '0' (goto UAC) else ( goto Administrator )
- :UAC
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
- "%temp%\getadmin.vbs"
- exit /b
- :Administrator
- if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
-
- echo 删除该分支下的所有键值
- cls
- reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRets2" /va /f
-
- pause
复制代码
|