How to automatically connect Windows 8/10 on start up

How to automatically connect Windows 8/10 on start up

 

 

Do you have a Windows 8 or 10 machine that needs to be automatically connected to a VPN?

  1. Open Task Scheduler
    Start > All Programs > Accessories > System Tools > Task Scheduler
  2. Click “Create Task” in the Actions pane on the right
  3. General Tab
    1. Provide a logical name for the task like “Auto VPN”
    2. Switch the running task mode to Run whether user is logged on or not
    3. Enable the Run with highest privileges option
    4. Change the “Configure for:” drop-down to Windows 8/10
  4. Triggers Tab
    1. Click the “New…” button
    2. Change “Begin the task:” to At start up
    3. (Optional) Enable “Delay task for” and set to 5 minutes. This give the machine a chance to idle down before launching the VPN.
  5. Actions Tab
    1. Click the “New…” button
    2. Enter c:\windows\system32\rasdial.exe in the “Program/script:” field. You can also browse to it if you don’t want to type it or your default Windows install directory is different.
    3. Type the connection name in the “Add arguments” field. The rasdial.exe requires you wrap the connection name in quotes if it has spaces. You may also need to append the connection’s username and password if they are required.
  6. Conditions Tab
    1. Un-check all of the options on the conditions tab.
  7. Settings Tab
    1. (Optional) enable “If the task fails, restart every:” and set to an appropriate value. I set mine to 1 hour in case there is a problem on the VPN server’s end.
    2. (Optional) set the “Attempt to restart up to:” value to an acceptable number. My default is 72 times at a 1 hour interval. This covers long weekend.
  8. Save the new task

Related Posts

Comments are closed.