The accepted answer by Mikael is great, except for the plain text password in 5.3, which just makes me queasy. My default is 72 times at a 1 hour interval. (Optional) set the "Attempt to restart up to:" value to an acceptable number. I set mine to 1 hour in case there is a problem on the VPN server's end. (Optional) enable "If the task fails, restart every:" and set to an appropriate value.Un-check all of the options on the conditions tab.You may also need to append the connection's username and password, as well as domain, if they are required, like this: "VPN Connection Name" username password /domain:domainname. The rasdial.exe requires you wrap the connection name in quotes if it has spaces. Type the connection name in the Add arguments field.You can also browse to it if you don't want to type it or your default Windows install directory is different. Enter c:\windows\system32\rasdial.exe in the Program/script: field.This give the slow machine a chance to idle down before launching the VPN. (Optional) Enable Delay task for and set to 5 minutes.Change the Configure for: drop-down to Windows 10.Enable the Run with highest privileges option.Switch the running task mode to Run whether user is logged on or not.Provide a logical name for the task like Auto VPN.
0 Comments
Leave a Reply. |