Windows - How do I configure OpenVPN to start automatically?

    We recommend using the official IVPN software client which already includes this functionality. See the Windows App page to download IVPN for your platform.

    For this solution to work, you need to configure OpenVPN to store your IVPN Account ID (if you have not done so already). To do this please follow these instructions.

    1. Click on the Windows start button and type Task Scheduler and click on it.

    2. On the menu bar click Action | Create task.

    3. Give the task a name e.g. “Auto-start VPN”.

    4. Select Run only when user is logged on.

    5. Select Run with the highest privileges.

    6. 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.

    7. 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"
      
    8. Click on the Conditions tab and clear any boxes which are checked.

    9. Click OK. The task should now be created and will connect to the named VPN connection every time the system starts up.



    Related Articles

    Still have questions?

    Get in touch and we'll get back to you in a few hours.

    Contact support

    Interested in privacy?

    Read our latest privacy news and keep up-to-date on IVPN services.

    Visit IVPN Blog
    Spotted a mistake or have an idea on how to improve this page?
    Suggest an edit on GitHub.