.bat script to change gui to run as admin

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
eferris
OpenVpn Newbie
Posts: 2
Joined: Tue Oct 09, 2012 8:13 pm

.bat script to change gui to run as admin

Post by eferris » Thu Oct 11, 2012 3:34 pm

Hey all!

Hopefully this is the correct forum for this. I'm working on a .bat script to change the registry entry for OpenVPN to always run the OpenVPN gui as admin. Some users have problems remembering to run it as admin and asking them to change the settings in compatibility might be too much for certain users in my office.

I've gotten the solution for a win7 x64 install:

echo y|REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\OpenVPN-GUI /v allow_service /d 1

but for a x86 I'm unable to track down the entry in regedit. The closest I've found was in HKEY_USERS under the specific user string but when changed it still doesnt change the windows route via required elevation.

Any ideas or am I on the wrong track?

Thanks.

Post Reply