Always Up Windows VPN Connection

Use Windows Task Scheduler to create a task to keep an (already configured) VPN connection 'Always Up':
  1. Open Task Scheduler
  2. Create Task

  3. Tab: General - Give it a meaningful name.

  4. Tab: Triggers - add 3 triggers
    screenshot-triggers.jpeg 

    1. At Log on - of any user (adjust accordingly)

    2. On Event - Log: Application, Source: RasClient, Event ID: 20226
      screenshot-trigger1.jpeg

    3. On Event - Log: Microsoft-Windows-NetworkProfile/Operational, Source: NetworkProfile, Event ID: 10000
      screenshot-trigger2.jpeg

  5. Tab: Actions - Add 1 action to Start a Program
    screenshot-actions.jpeg

    1. Program/script: %WINDIR%\System32\rasdial.exe
    2. Add Arguments: "VPN_NAME"
      At least include the name of your Windows VPN but you will probably also need the username and password (if that type of VPN), remembering that the context of this running is any user who logs on (Tab: Triggers)

  6. (optional) Tab: Settings - Untick the default option to Stop the task running after 3 days.