OpenVPN – Run as a Service Not Working

openvpn

I've setup OpenVpn (2.4.7) on a server(Windows server 2012) with automatically start service,OpenVpn interactive service:AUTOMATIC
Client connection works, but If system is restarted on server (windows update,etc) and let it into user login window the client can't connect until a login is done and run Connect on OpenVpn GUI(on server). how to fix that?in case on server restart all clients connections will be down until someone log to server and run OpenVpn GUI Connect

thanks

Best Answer

Solved creating a windows task for openvpn-gui.exe arguments: --connect "config.ovpn" on task check 'user logged in or not' trigger: at startup