luckman212 Hi just a quick question- is it still required to run the OpenVPN GUI "as Administrator" under Vista/7/8 even with the new ver 2.3? In my limited testing the answer seems to be 'YES' - when I run it as a normal user it connects but routing does not work properly (I guess ovpn is not able to adjust the routing table). Is there any way to make this work more easily?
luckman212 I figured out a way: 1. open 'task scheduler' 2. create new task 3. call it 'openvpn' 4. set to 'run only when user is logged on' 5. set 'run with highest privileges' 6. triggers - none 7. actions - start a program, "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" (double quotes) 8. settings - allow task to be run on demand 9. now, right click on desktop, create new > shortcut 10. target = C:\Windows\System32\schtasks.exe /run /tn openvpn 11. hit 'change icon button, then 'Browse' 12. point it to %ProgramFiles%\OpenVPN\icon.ico 13. set shortcut to start 'minimized' Done! you have a nice shortcut you can just double click and it runs the GUI without any annoying UAC prompt but with the proper privileges to adjust routing tables, so VPN works. Also you can add this shortcut to your Startup folder if you like: 1. hit Start > Run or type Win+R 2. type 'shell:startup' 3. place a copy of this shortcut into the folder Done! 😃
AndyBurns luckman212 wroteI figured out a way: 10. target = C:\Windows\System32\schtasks.exe /run /tn openvpn Neat ...
gaparrot Hi I tried your procedure but still a UAC prompt I created a GPO : > restricted group : "Network Configuration Operators" for my test user > Add logon as Batch for my test user > create schedule task >> IdUtilisateur %LogonDomain%\%LogonUser% >> Run with highest Privileges HighestAvailable >> Program/script c:\program files\openvpn\bin\openvpn-gui.exe >> i did not set a trigger, user will run manually thanks for your help
txeni Hi gaparrot, What windows are you using for that? I'm trying to replicate it with my computer at home, windows 8.1 pro. Not much success yet... Do you think it's possible to do? I just wanted to run the VPN client automatically at startup without the UAC poping up. My user is admin and I read somewhere that admins shouldn't be in the "Network Configuration Operator" group, should I create another user only to run this? Thanks