No need to detect Administrator privileges for XP / 2003

This commit is contained in:
crazy-max
2016-12-22 04:25:56 +01:00
parent a32282b508
commit 8c071873d3

View File

@@ -4,6 +4,12 @@
:: THIS BAT FILE WILL BE LAUNCHED WITH ADMINISTRATOR PRIVILIGES
@ECHO OFF
VER | FINDSTR /L "5.1." > NUL
IF %ERRORLEVEL% EQU 0 GOTO START
VER | FINDSTR /L "5.2." > NUL
IF %ERRORLEVEL% EQU 0 GOTO START
:UAC_ADMIN
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%ERRORLEVEL%' NEQ '0' (