So following the regedit way, I'm trying to get OpenVPN to run as admin automatically. The entry changes the .exe to run as admin under compatibility but it does not work as needed.
When running it I get - The requested operation requires elevation (this is to change some routing through windows to properly connect to our network).
When I right click run as admin it works properly. Also works as needed when I physically add the run as admin through the properties -> compatibility.
Odd yes?
The point of getting it through regedit is I'm going to have the changes done through a .bat script so users in my office just run the script and they don't have to worry about having to right click to run or change the properties of the .exe themselves.
This has happened to another user as well, and the solution was to add the registry entries to both HCU and HKLM locations in the registry. Hopefully it will work for you as well.
This has happened to another user as well, and the solution was to add the registry entries to both HCU and HKLM locations in the registry. Hopefully it will work for you as well.
Sure. You could enable and log on to the built-in Administrator account. Anything you run in this account will run as administratror (elevated). It's not recommended to do though for security reasons.