Published by


Brink's Avatar
Administrator

Posts: 25,184

Show Printable Version 


How to Disconnect 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 disconnect a VPN (virtual private network) connection in Windows 10.


CONTENTS:





Disconnect VPN in Windows 10 OPTION ONE Disconnect VPN in Windows 10
To Disconnect 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 connected VPN (ex: "MPN") on the right side you want to disconnect, and click/tap on the Disconnect button. (see screenshot below)

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

Name:  Disconnect_VPN_Settings.jpg
Views: 488
Size:  49.2 KB





Disconnect VPN in Windows 10 OPTION TWO Disconnect VPN in Windows 10
To Disconnect a VPN in Network Connections

1. Open the Control Panel (icons view), and click/tap on the Network and Sharing Center icon.

2. Click/tap on the Change adapter settings link on the left side of Network and Sharing Center. (see screenshot below)

Name:  Disconnect_VPN_in_Network_Connections-1.jpg
Views: 456
Size:  53.8 KB

3. Click/tap on the connected VPN (ex: "MPN") you want to disconnect. (see screenshot below)

Name:  Disconnect_VPN_in_Network_Connections-2.jpg
Views: 443
Size:  31.5 KB

4. Click/tap on Disconnect. (see screenshot below)

Name:  Disconnect_VPN_in_Network_Connections-3.jpg
Views: 456
Size:  34.5 KB






Disconnect VPN in Windows 10 OPTION THREE Disconnect VPN in Windows 10
To Disconnect 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 connected VPN (ex: "MPN") you want to disconnect from the drop menu, and click/tap on Hang Up. (see screenshot below)

Name:  Disconnect_VPN_rasphone-1.png
Views: 460
Size:  9.7 KB

3. Click/tap on Yes to confirm. (see screenshot below)

Name:  Disconnect_VPN_rasphone-2.png
Views: 464
Size:  9.3 KB






Disconnect VPN in Windows 10 OPTION FOUR Disconnect VPN in Windows 10
To Disconnect a VPN in Command Prompt

1. Open a command prompt.

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

PowerShell Get-VpnConnection

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

Make note if ConnectionStatus for the VPN is currently Connected or Disconnected.

Name:  Get_VPN_command-1.png
Views: 449
Size:  25.7 KB Name:  Get_VPN_command-2.png
Views: 457
Size:  25.7 KB

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


rasdial "Name" /disconnect

OR

rasphone -H "Name"

Note   Note
Substitute Name in the command above with the actual name of the connected VPN (ex: "MPN") you want to disconnect.

For example:

rasdial "MPN" /disconnect

OR

rasphone -H "MPN"

Name:  Disconnect_VPN_command.png
Views: 460
Size:  10.4 KB Name:  Disconnect_VPN_command-2.png
Views: 453
Size:  8.9 KB


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


That's it,
Shawn