Posts tagged: Windows 7

Moving VPN Connections between Computers

To move VPN connections created with the Windows Network and Sharing Center VPN wizard between computers on Windows 7 you will need to copy the following file from your user profile to the user account on the other computer.

%userprofile%\Application Data\microsoft\Network\Connections\Pbk\rasphone.pbk

  • Share/Bookmark

How to delete a VPN connection on Windows 7

To delete a VPN connection created using the Network and Sharing Center VPN wizard on Windows 7 just open up Network and Sharing Center using windows search (click the start button and just start typing “network and sharing center”) or via your network icon in the tray.

From here click on “Change adapter settings” on the left hand side as shown below:

On the next screen you can select and delete the connections you see.

  • Share/Bookmark

Add a static route to Windows

To add a static route to windows you can use the route command:

To view the existing routes on a machine. Open a command prompt and type the following:

route print

To add a static route:

route add <target> mask <netmask> <gateway IP> metric <metric cost> if <interface>

eg. route add 192.168.1.0 mask 255.255.255.0 10.10.1.1 metric 1

The above static route will only be available till the machine in rebooted. To add a persistane route (one that lives after a reboot of the machine) add the -p switch to the command.

eg. route -p add 192.168.1.0 mask 255.255.255.0 10.10.1.1 metric 1

The following registry key holds the values for static routes.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

As with other command prompt commands you can view all the options this command offers by typing route /? at the command prompt.


  • Share/Bookmark