Код:

@echo off
setlocal
set "regpath=hklm\software\microsoft\windows\currentversion\policies\system"
for /f "tokens=3" %%i in (' reg query "%regpath%" /v "consentpromptbehavioradmin" ') do set /a "value=%%i"
if "%value%"=="1" (
reg add "%regpath%" /v "consentpromptbehavioradmin" /t reg_dword /d 0 /f
)