question

GloriaGu-MSFT avatar image
0 Votes"
GloriaGu-MSFT asked ·

Always On Device VPN - Won't connect at machine startup, unless from scheduled task.

I've created a Device VPN connection using the Microsoft documentation https://github.com/MicrosoftDocs/windowsserverdocs/blob/master/WindowsServerDocs/remote/remote-access/vpn/vpn-device-tunnel-config.md

Using this method didn't populate the adaptor settings, although after configuring manually I was able to use it. The VPN does not connect at start-up although the xml file did include the always on option, I also set the VPN connection to 'Connect Automatically'. I ended up creating a scheduled task which would trigger the connection at start-up.

Any help making this connection automatically connect as designed would be great. Is there a specific set of services that need to be running before it will connect as expected or any group policy settings that need to be set/avoided.

Windows 10 version is 1809

Thread source link: https://social.technet.microsoft.com/Forums/windows/en-US/95d8b59e-f29f-4d98-a58e-4ca130a3bcd8/always-on-device-vpn-wont-connect-at-machine-startup-unless-from-scheduled-task?forum=win10itpronetworking

windows-10-network
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered ·

Hi ,

Welcome to our new Microsoft Q&A Platform.

You might need to check XML file.

If you make a mistake in one of the tags, the script would run, however, all the parameters you have specified such Tunnel Type, Authentication Type and settings won't be configured (they will be lost) and the OS will leave the default values for regular VPN.

12492-4.png

So, our recommendation is, if this is the first time you are running the script, after script runs, you should go to the properties of the VPN and check the parameter you have specified in the script were configured properly.

Best Regards,

Candy




4.png (235.6 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.