Page 1 of 1

Start and Close a OpenVPN Connection via Scheduled Task

Posted: Fri Aug 29, 2014 10:47 am
by Sherlock
Hello everbody,

as you can see in the subject ive to create a scheduled task to open and close a OpenVPN Connection.

First of all: I use a Microsoft Operation System

When i open the OpenVPN Connection via Scheduled Task the Application is hang on, i dont get a connection to the destination.

The Scheduled Task have this configuration in Action:

Program/script: "C:\Program Files\OpenVPN\bin\openvpn-gui.exe"
Arguments: --config_dir "C:\Program Files\OpenVPN\config\" --connect openvpn.ovpn

The task is running, but nothing more is happen after the start time.

On Windows Task Manager i see following processes:

openvpn.exe
openvpn-gui.exe

It looks like both Proccesses are stand still, there is no activity in CPU or Memory.

Can someone tell me how im able to open and close a OpenVPN Connection automatically via Scheduled Task?

Thanks a lot

Re: Start and Close a OpenVPN Connection via Scheduled Task

Posted: Fri Aug 29, 2014 12:10 pm
by maikcat
i dont see a reason why not on calling openvpn directly....

why do you want the gui to start?

Michael

Re: Start and Close a OpenVPN Connection via Scheduled Task

Posted: Mon Sep 01, 2014 10:37 am
by Sherlock
Hi maikcat,

got a workaround for me: i use the autoconnect when the openvpn connection is disconnect temporally by ISP.

Thanks a lot