0

I'm writing a batch script and I have searched everywhere for a way to do this. I want to turn UAC all the way up (you know, the slider) via my batch script. I've already tried turning it on and off with this:

C:\Windows\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 2 /f

But I can't find a way to turn it up! Please help! There has to be a way!

1 Answer 1

3

UAC slider is controlled by combination of several registry values. See this question: Set UAC Level with PowerShell. So, set desired UAC level, write down values for mentioned registry keys and apply them with reg.exe.

3
  • interesting... I believe I tried this and it only partially worked. Commented Mar 12, 2015 at 12:15
  • @LukeDinkler Share a details about what worked and what not and maybe we could figure this out. Commented Mar 12, 2015 at 13:54
  • Ok! I got it to work! I had a look at this: msdn.microsoft.com/en-us/library/cc232771.aspx for the REG_DWORD values. Thanks! Commented Mar 12, 2015 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.