Hello -
I have a Windows-based OpenVPN client installed in order to connect to an OpenVPN Access Server. I have several users that have the "auto login" feature enabled. I'm trying to see if there is a way to connect an auto-login profile using a command, as opposed to the user manually clicking into the client, and then choosing "Connect to ...". I tried downloading the ".ovpn" config file from my access server, and then launching:
C:\Program Files\OpenVPN Technologies\OpenVPN Client\core\openvpn.exe --config myconfig.opvpn
But that results in a bunch of errors, and never fully connects. I did tick the option to start as a Windows service, but again I'm looking to see about using a command/CLI to connect to the server. The reason for this is because, I want to create a task within Windows that will execute this command if it knows the client just connected to a wireless network.
Right now, even with the windows service, if the client is disconnected from a wireless network for 10+ minutes, it will NOT automatically connect to the VPN server without manually going into the client. Anyone able to get this working? Thank you!
-Ken