Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to connect to an openvpn via a command line in Windows XP. What I can't figure out is how to end the connection. Any thoughts?

share|improve this question

press F4 (it's listed in the title bar of the command window).

share|improve this answer
-1 they're looking for command line, not keyboard shortcuts – Mark Henderson Apr 8 '12 at 20:56
That's the correct answer: When you're starting openvpn.exe on command line, the only way to disconnect is to hit F4. CTRL-C is ineffective. – Nicolas Guillaumin Jun 30 '13 at 7:33

You can stop the service with:

net stop openvpnservice
share|improve this answer

they often have the command


share|improve this answer

Don't know if this works for XP or when it was introduced, but you can now use this to disconnect

"%ProgramFiles\OpenVPN Technologies\OpenVPN Client\core\ovpncli.exe" disconnect

on 64bit

"%ProgramFiles(x86)\OpenVPN Technologies\OpenVPN Client\core\ovpncli.exe" disconnect

I know old post, but this is the first result google gave when I was looking how to do this.

share|improve this answer

Its looks like openvpn doesnot have disconnect option. But you can use taskkill command to disconnect the vpn connection. I have tested myself. It is properly disconnecting instead of abruptly killing openvpn.

taskkill.exe /F /IM openvpn.exe

share|improve this answer

Refer below link, that might help you...

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Mark Henderson Apr 8 '12 at 20:54

Your Answer


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.