Published by


Brink's Avatar
Administrator

Posts: 25,183

Show Printable Version 


How to Connect to a VPN in Windows 10

information   Information
Whether it's for work or personal use, you can connect to a VPN (virtual private network) on your Windows 10 PC. A VPN connection can help provide a more secure connection to your network and the Internet.

A virtual private network (VPN) allows you to connect to the internet via a server run by a VPN provider. A VPN extends a private network across a public network, and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network. ("In the simplest terms, it creates a secure, encrypted connection, which can be thought of as a tunnel, between your computer and a server operated by the VPN service." Applications running across the VPN may therefore benefit from the functionality, security, and management of the private network.

For more information about a VPN, see:

This tutorial will show you different ways on how to connect to a VPN (virtual private network) connection in Windows 10.

Note   Note
Before you can connect to a VPN, you must have already added a VPN connection.

CONTENTS:





Connect to VPN in Windows 10 OPTION ONE Connect to VPN in Windows 10
To Connect to a VPN in Settings

1. Open Settings, and click/tap on the Network & Internet icon.

2. Click/tap on VPN on the left side, click/tap on the added VPN (ex: "MPN") on the right side you want to connect to, and click/tap on the Connect button. (see screenshot below)

Name:  Connect_VPN_Settings-1.jpg
Views: 272
Size:  51.9 KB

3. If prompted, enter your user name and password for the VPN, and click/tap on OK. (see screenshot below)

Name:  Connect_VPN_Settings-1b.png
Views: 267
Size:  9.9 KB

4. Windows 10 will now attempt to connect to the VPN. (see screenshots below)

Name:  Connect_VPN_Settings-2.jpg
Views: 275
Size:  44.5 KB Name:  Connect_VPN_Settings-3.jpg
Views: 258
Size:  42.3 KB
Name:  Connect_VPN_Settings-4.jpg
Views: 268
Size:  44.1 KB Name:  Connect_VPN_Settings-5.jpg
Views: 263
Size:  43.7 KB

5. When finished, you can close Settings if you like.






Connect to VPN in Windows 10 OPTION TWO Connect to VPN in Windows 10
To Connect to a VPN using rasphone.exe (Remote Access Phonebook)

1. Press the Win+R keys to open Run, type rasphone into Run, and click/tap on OK to open Network Connections (Remote Access Phonebook).

2. Select the added VPN (ex: "MPN") you want to connect to from the drop menu, and click/tap on Connect. (see screenshot below)

Name:  Connect_VPN_rasphone-1.png
Views: 251
Size:  10.2 KB

3. If prompted, enter your user name and password for the VPN, and click/tap on Connect. (see screenshot below)
Note   Note
If you like, check the Save the user name and password for the following users box to have Windows 10 automatically sign in to this VPN whenever you connect to the VPN.
Name:  Connect_VPN_rasphone-2.png
Views: 265
Size:  59.9 KB






Connect to VPN in Windows 10 OPTION THREE Connect to VPN in Windows 10
To Connect to a VPN in Command Prompt

1. Open a command prompt.

2. Enter the command below into the command prompt, and press Enter to see all available added VPN connections. (see screenshot below)

PowerShell Get-VpnConnection

Note   Note
Make note of the Name (ex: "MPN") of the VPN you want to connect to.

Make note if RememberCredential for the VPN is True or False.
  • If True, then you may not need to enter your user name and password for the VPN in the command.
  • If False, then you will need to enter your user name and password for the VPN in the command.
Name:  Get_VPN_command-1.png
Views: 266
Size:  25.7 KB

3. Enter the command below you need to use into the command prompt, and press Enter. (see screenshot below)
Note   Note
To see more information and usage options for the Rasdial command, see: Rasdial - Microsoft TechNet


(Without user name and password credentials)
rasdial "Name"

OR

(With user name and password credentials)
rasdial "Name" "User name" "Password"

Note   Note
Substitute Name in the command above with the actual connection name for the VPN (ex: "MPN").

Substitute User name and Password in the command above with your actual user name and password for the VPN.
Name:  Connect_to_VPN_command.jpg
Views: 254
Size:  42.9 KB

4. When completed successfully, you can close the command prompt if you like.



That's it,
Shawn