flag file to run as admin in registry (windows 8)
Posted on 2013-01-07
The below registry edit from batch does update the registry, however the file "test.bat" does not flag "run as administrator".
I used this in windows XP and Windows 7 and it works, not sure why it does not work in Windows 8.
Is there a different path in Windows 8 to perform this task other than AppCompatFlags\Layers?
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%systemdrive%\program files\TEST\program\Test.bat" /t REG_SZ /d "WINXPSP2 RUNASADMIN" /f >nul 2>nul