| 1 | = System Scheduled VPN Login == |
| 2 | |
| 3 | {{{ |
| 4 | CrayFishUK, my experience for all Windows XP/Vista/7/2008/8/2012/10 This will connect VPN as a SYSTEM user when system starts. |
| 5 | |
| 6 | You will need to create a VPN connection |
| 7 | Save or not save credential it is not important. |
| 8 | Find a rasphone.pbk in %APPDATA%\Microsoft\Network\Connections\Pbk_hiddenPbk |
| 9 | 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) |
| 10 | Now you need to create scheduler task... |
| 11 | |
| 12 | Scheduler task: |
| 13 | |
| 14 | Start after boot |
| 15 | Program to start has credential to connect VPN |
| 16 | |
| 17 | Code: |
| 18 | |
| 19 | 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 |
| 20 | |
| 21 | You will need change the creator user to the SYSTEM user |
| 22 | |
| 23 | I have add at the end: |
| 24 | |
| 25 | route add 10.0.0.0/8 172.16.0.254 |
| 26 | |
| 27 | }}} |
| 28 | |