Want shortcut to OpenVPN GUI connect in Windows 7 (without going through the system tray)

2

1

I am running OpenVPN with OpenVPN GUI under Windows 7 x64. Currently, to connect I need to right-click the OpenVPN icon in the system tray and select "connect", which brings up the password prompt. What I want: some sort of a batch file or a shortcut that can be invoked to initiate OpenVPN connection.

Motivation: I prefer running my system keyboard driven; I usually hide my taskbar and don't like needlessly fishing in the system tray. Currently, OpenVPN is the only program that forces me to interact with the taskbar. Surely there is an alternative approach, possibly invoking some command line trickery and/or autohotkey, but so far I haven't been able to find it.

Leo Alekseyev

Posted 2010-12-31T06:34:12.613

Reputation: 133

Answers

1

Start the VPN with a command.

net start openvpnservice

naisanza

Posted 2010-12-31T06:34:12.613

Reputation: 274

This does not work with an encrypted private key. Still, marking as accepted b/c with a decrypted key it works fine. – Leo Alekseyev – 2011-04-08T20:58:31.737

Start the service as per Eric's post, and then launch OpenVPN GUI with a profile:

"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect myconfig.ovpn – Martin Suchanek – 2012-07-04T21:24:39.877

1How can I automatize the user/password prompt? I already have a xxx.ovpn file from a public VPN server. – skan – 2013-09-27T11:29:49.720