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.

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Start the VPN with a command.

net start openvpnservice
link|improve this answer
This does not work with an encrypted private key. Still, marking as accepted b/c with a decrypted key it works fine. – Leo Alekseyev Apr 8 '11 at 20:58
feedback

Your Answer

 
or
required, but never shown

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