Command Line VPN Dial

In Windows 10 you can select a VPN connection from the Network Tray icon. But instead of dialing the connection directly it takes you to the VPN screen where you have to find the correct VPN connection and hit dial. It is no big deal but just feels slow using the mouse.

While Googling for a way to dial a VPN connection with PowerShell I found that Rasdial.exe can be used to dialĀ an already configured VPN connection and also terminate it when done. Launcing this from the Windows Run box is easy.

rasdial "Connection Name"
rasdial "Connection Name" /Disconnect

Leave a Reply

Your email address will not be published. Required fields are marked *