CoNetrix Blog

How to Disconnect a PPTP VPN Connection Manually

Posted on February 23, 2010 10:07 PM

I was working remotely on a customer’s network using a PPTP VPN connection. When my work was completed, I clicked on the network icon in my system tray expecting to find a “disconnect from” option for the connection.  It was not there.  I opened up Network and Sharing Center, but could not find a way to disconnect the session.  Finally, I disabled my network interface card (NIC) and re-enabled it.  That disconnected the session.

I knew I didn’t want to have to disable my NIC every time I used a PPTP VPN connection, so I looked for a solution.  I found an online forum that mentioned that this was a known issue. The workaround for this problem is:

Open up a command prompt window.  At the prompt, type rasdial “connection name” /disconnect and then enter.  That will disconnect the session.  The connection name will need to be in quotations if the name of the connection has spaces in it.  If it does not, then quotations are not needed.  If you need to identify the connection name, you can just type rasdial and then enter.  This will give you a list of all your active connections.

If you utilize the same PPTP connection(s) quite often, you can also create a disconnect shortcut for each connection, which will simplify the process.  Just create a new shortcut and add the listed command string in the location.  Then, when you need to disconnect from the PPTP session, just use the shortcut.

Related Posts

Comments

Comment by Shawn

November 9, 2011 12:08 PM

I know this over a year old, but it's come in handy!

Thanks Laughing

Comment by Lee

November 28, 2011 1:06 PM

In Windows 7, clicking on the network icon in System Tray brings up a list of networks you are connected to, under which is a list of all stored networks. Right-clicking on the name of the network in the Connected To window does nothing; however, right-clicking on the name below gives you a context menu with Disconnect, Status, and Properties. In Network and Sharing Center, active networks are shown under the network map. Clicking "Connect or Disconnect" (shown in blue on the same line as "View your active networks") brings up the same list of networks as clicking the network icon, same right-click etc. Also in Network and Sharing Center, clicking Change adapter settings shows you all your adapters, including the virtual adapters for any VPNs you have set up. Right-click menu will include a disconnect (or connect if currently disconnected). If none of these work, your system has problems and you should be running SFC or possibly trying a System Restore.

Comment by Ab

April 21, 2012 3:20 PM

"Right-click menu will include a disconnect (or connect if currently disconnected). If none of these work, your system has problems and you should be running SFC or possibly trying a System Restore."

No, it doesnt have the option - thats the point of this article - Windows VPN connections have the 'Disconnect' greyed out. Bouncing the LAN connection is the fastest way to deactivate it but hardly elegant.

Add Comment





[b][/b] - [i][/i] - [u][/u]- [quote][/quote]