For this solution to work you need to configure OpenVPN to store your username and password (if you haven't already). To do this please follow these instructions.
- Click on the Windows start button and type task scheduler and click on it.
- On the menu bar click Action | Create task.
- Give the task a name .e.g "Auto-start VPN".
- Select Run only when user is logged on.
- Select Run with the highest privileges.
- Click on the triggers tab and click New. Select At log on and click OK - You can choose for all users or a specific user. If you have any issues you may need to set the Delay task option in the advanced settings to 30 seconds or thereabout to enable the network adapter to initialize first.
- Click on the Actions tab and click New. Enter the program and argument as below according to your installation. The path must be correct and you must specify the name of the config file you wish to connect to.
Program: "C:\Program Files\OpenVPN\bin\OpenVPN-Control-Centre.exe" Argument: --config_dir "C:\Program Files (x86)\OpenVPN\config" --connect "iVPN - Singlehop - Netherlands.ovpn"
- Click on the Conditions tab and clear any boxes which are checked.
- Click OK. The task should now be created and will connect to the named VPN connection everytime the system starts up.