On Windows XP, 7, 8, 8.1 you could tick a box that says 'Allow other users to use this VPN' when you initially connected the VPN.

This option is no longer available - how do I set the VPN to be available for connection on the Login screen?

up vote 7 down vote accepted

Old question but for anyone trying to find an answer there is a better solution via elevated powershell:

Add-VpnConnection -Name MY_VPN_NAME -ServerAddress MY_VPN_SERVER -AllUserConnection $true -SplitTunneling $true -AuthenticationMethod MSChapv2 -TunnelType Automatic -EncryptionLevel Required -PassThru

Source

  • and WHAT IF, I ... BLOODY NEED TO EDIT THAT CONNECTION ?!? ... I go every account or I study how to do it with powershell commands ?!? ... GEE, thanks ! – THESorcerer May 6 '17 at 14:29
  • @THESorcerer - bruh, its 2017, its time to learn the powershells. – Wjdavis5 Aug 16 '17 at 16:14

CrayFishUK, my experience for all Windows XP/Vista/7/2008/8/2012/10 This will connect VPN as a SYSTEM user when system starts.

  1. You will need to create a VPN connection
  2. Save or not save credential it is not important.
  3. Find a rasphone.pbk in %APPDATA%\Microsoft\Network\Connections\Pbk_hiddenPbk
  4. More nice if you will copy it to C:\ProgramData\Microsoft\Network\Connections\Pbk\rasphone.pbk or attach to exist rasphone.pbk (it is text files)
  5. Now you need to create scheduler task...

Scheduler task:

  • Start after boot
  • Program to start has credential to connect VPN

Code:

cmd /c rasdial VPNUSER VPNPASSWORD /PHONEBOOK:"C:\ProgramData\Microsoft\Network\Connections\Pbk\rasphone.pbk" && route add 10.0.0.0/8 172.16.0.254
  • You will need change the creator user to the SYSTEM user

I have add at the end:

route add 10.0.0.0/8 172.16.0.254

for exampe, how to auto add route when sucsesful connect VPN

If you will need to reconnect VPN when it fails ask a new question and I will help.

By default VPN send all traffic through VPN, if you want to use routes You will need to turn off this future.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.