1. Right click the Desktop and select New – Shortcut.
  2. Windows-10-new-shortcut
  3. In the shortcut target box, type or copy-paste the following command:
    rasphone -d "VPN connection name"

    See the following screenshot:

  4. Windows-10-connect-to-VPN-shortcut-600x449

  5. Set the desired icon and name for your shortcut.

Once you do this, just click this shortcut to connect to a VPN directly. You can pin it anywhere you want.

 

For Disconnect create another shortcut with:  rasphone –h “VPN Name”

 

 

Another option:

Connect: rasdial “VPN Name” [username] [password]

Disconnect: rasdial “VPN Name” /DISCONNECT

 

 

Original Links:

http://winaero.com/blog/connect-to-vpn-in-windows-10-with-one-click-desktop-shortcut/

https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/vpn-connection-shortcuts/e94fa04c-e8e0-4499-8cc5-e7a342912725