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?
The above answers didn't work for me. The question is about Windows XP, but I thought I would answer for Windows 10 anyway.
You can now run the GUI program with a large number of options. To disconnect a specific client execute the following (this worked in October 2019 with OpenVPN version 11.10 64bit)
"c:\Program Files\OpenVPN\bin\openvpn-gui.exe" --command disconnect <client-name>
Or disconnect all connections, regardless of name
"c:\Program Files\OpenVPN\bin\openvpn-gui.exe" --command disconnect_all
Many other options are also available
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
"%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.
Refer below link, that might help you...