Deploying the OpenVPN client with connection profile (.ovpn)
Since I didn’t find a documentation on how to deploy OpenVPN plus a connection profile, here’s how it worked for me.
Rename your ovpn file to bundled.ovpn
Place it in the same folder as the openvpn-connect-x.y.z.msi
Provide a script that starts the setup with /qn switch and runs a task that kills the application (it is launched by the setup)
The simple way:
openvpn-connect-3.4.0.3121_signed.msi /qn
timeout 5 > 0
taskkill /F /IM openvpnconnect.exe
Links:
(1) Push a profile to OpenVPN Connect v3 silently : OpenVPN (reddit.com)