Can You Make Windows 10 Automatically Connect to a VPN?

Colin Hollenback

Distinguished
Jun 28, 2014
65
2
18,635
Hey,

So I configured Windows 10 to use a VPN that operates through https://hide.me/en/ (I didn't download a client, I manually added it through Settings > Network & Internet > VPN > Add a VPN connection) and added the information it told me to put in, such as the name, login, server address, format and encryption, etc. The VPN itself works perfectly, but the problem is that Windows seems to randomly disconnect it, meaning that I have to manually go to the VPN menu and reconnect. Is there a way to make it so that it connects automatically every time?
 
Solution
Hello,
Go to your VPN connection's Properties.

Networking (tab) -> select 'Internet Protocol' from the list and click 'Properties' -> click 'Advanced...' -> uncheck 'Use default gateway on remote network'

This should solve problem.

7malligk

Reputable
May 4, 2015
293
0
4,860
Hello,
Go to your VPN connection's Properties.

Networking (tab) -> select 'Internet Protocol' from the list and click 'Properties' -> click 'Advanced...' -> uncheck 'Use default gateway on remote network'

This should solve problem.
 
Solution

yodasdaddy13

Commendable
Mar 15, 2016
2
0
1,510
Do a search for task scheduler. Create a new task, name it whatever you like. ( vpn auto reconnect etc.)
Run even when user not logged on, run with higher privileges
Trigger tab, application 1st box, rasclient 2nd box, and 3rd box is 20226 < event ID
actions tab, start a program, C:/Windows/System32/rasdial.exe
under add arguments you will put as follows: VPN NAME(if theres a space you have to use "") USERNAME PASSWORD
Conditions tab uncheck em all.

 

Hcr

Distinguished
Jul 18, 2011
5
0
18,510
Thanks for the tips. Is it "20226 < event ID"? Not sure if a conditional can be inserted in the text field.

On researching event ids, I came across https://technet.microsoft.com/en-us/library/cc773767(v=ws.10).aspx

There are couple of more event IDs mentioned - 20139, 20140. Can we just use 20139, 20140, 20226 in the event id field while creating the task?



 

yodasdaddy13

Commendable
Mar 15, 2016
2
0
1,510


You can. I don't actually remember posting this. Probably a little hammered but yes, you can use whichever event id matches your situation. I pay for my vpn so I've found the reconnect after disconnect works best. However since your using hideme there may be better options available. Cheers!