Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Start the VPN with a command.

net start openvpnservice
share|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
    
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 Su Jul 4 '12 at 21:24
    
How can I automatize the user/password prompt? I already have a xxx.ovpn file from a public VPN server. –  skan Sep 27 '13 at 11:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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