OpenVPN Autorun and Autoconnect on startup

ninenight

Commendable
Jul 24, 2016
2
0
1,510
Hi
I am using Windows 10 64bit. I tried to autorun and autoconnect OpenVPN on windows startup through Task Scheduler according to this article
https://www.cactusvpn.com/tutorials/how-to-auto-start-openvpn-gui-on-windows/
(Please note I think the arguments line was incorrect as it prompt error when startup so I changed)
Here is my arguments line --connect “xxxx.ovpn”
The complete details will be like this
"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect "xxxx.ovpn"
However, when startup, it prompted it couldn't find the xxxx.ovpn. My ovpn files are put under folder the default folder config with the password text.
Did I miss anything?

 
Solution
Your arguments line might work if you auto start the exe file in Task Manager>StartUp tab - the modern equivalent to msconfig. If that exe file has an attendant Service, is that set to start automaticlly without a delayed start? All this has to be in the right order.

Maybe the Command Line would work better than the Control Panel Task Scheduler, using the "at" commands.
Your arguments line might work if you auto start the exe file in Task Manager>StartUp tab - the modern equivalent to msconfig. If that exe file has an attendant Service, is that set to start automaticlly without a delayed start? All this has to be in the right order.

Maybe the Command Line would work better than the Control Panel Task Scheduler, using the "at" commands.
 
Solution