Windows7/8 PPTP VPN

The_Unbeliever

Honorary Master
Joined
Apr 19, 2005
Messages
103,193
Reaction score
10,233
Location
Nkaaaaandla
So we discovered that Windows7 (and Windows8) loses its PPTP VPN connection icon (incoming connections) when the LAN cable is disconnected and the PC is rebooted. (Windows XP does not have this "feature"...)

As this is a remote PC, it is a bit of a hassle to phone and guide the onsite tech to recreate the PPTP VPN connection so as to be able to reconnect to that PC again.

Is it possible to use a batch script to recreate said connection on bootup, or at any other time when the connection icon is found missing?

We got Teamviewer installed anyway, so if it get lost, we can just teamviewer in, recreate it and we're set. But this is a hassle for us. A batch file, as above, will make thins just easier - just double-click, and it's restored.

regards

Ook
 
Just to make sure, but do you need the connection simply be re-created, or do you need it to connect automatically as well, i.e. using stored credentials?
 
Is the pc in a domain? Simple GPO will work…

Or else should you use teamviewer like you said, why not try CentraStage? Registration includes 500 licences Free to remote and 5 to manage where you can quickly establish the VPN without remoting into the pc, but this will also require a script which I believe is already built-in into CentraStage scripting packages…

Back in the day we had scripts like these to utilise with Server 2003.
 
Just to make sure, but do you need the connection simply be re-created, or do you need it to connect automatically as well, i.e. using stored credentials?

As stated in my OP :

1. You create the PPTP VPN server in Windows7/8, using the New Connection Wizard. All works well.
2. Until somebody disconnects the LAN cable (or leave the router/switch off) and restart the Windows7/8 PC
3. Upon bootup, the PPTP VPN server (incoming connections) icon is no longer available in Network and Charing Centre, neither is the PPTP VPN server running.
4. You will need to recreate it in order for PPTP VPN clients to connect to this PC. The information is not lost, only the icon is lost. (And the server doesn't start up until you recreated the icon using the New Connection Wizard).
 
Ah OK. Honestly, your second mail was a bit clearer :-)

In any case, it could be your "Routing and Remote Access" server goes into a fit and doesn't auto-start, or pick up, when the LAN connection is restored, or the the PC is booted.

Put the following in a batch file in your login script:

cd \
#First make sure the RRAS isn't running and/or in an inconsistent starte.
net stop "Routing and Remote Access"
#Manually starts the RRAS services.
net start "Routing and Remote Access"
exit


That should do the trick.

Tested on Windows 8 with local admin rights.
 
Ah OK. Honestly, your second mail was a bit clearer :-)

In any case, it could be your "Routing and Remote Access" server goes into a fit and doesn't auto-start, or pick up, when the LAN connection is restored, or the the PC is booted.

Put the following in a batch file in your login script:

cd \
#First make sure the RRAS isn't running and/or in an inconsistent starte.
net stop "Routing and Remote Access"
#Manually starts the RRAS services.
net start "Routing and Remote Access"
exit


That should do the trick.

Tested on Windows 8 with local admin rights.

Thanks. Will try and see what happens.
 
Top
Sign up to the MyBroadband newsletter
X