How to Create a Shortcut to VPN Connection on Windows

In the digital age, it is imperative to use a VPN to cover one’s tracks and keep one’s online data secure. Once set up, Windows 11 lets you access the VPN from the system tray to quickly enable or disable it. But faster shortcuts can yet be set up. Here’s all that you need to know to quickly access your VPN connection. 

How to Create a VPN Connection Shortcut on Windows

Unless you want to bring back the revered VPN Fly-out menu of Windows 8.1, creating a VPN shortcut is the only way to quickly access it. Here are all the ways to do so: 

Method 1: Get a VPN shortcut in quick settings

On Windows 11, once you create a VPN connection, its shortcut is added automatically to quick settings. Here’s how you can get it:

  1. Press Win+I and open the Settings app. Go to Network & internet > VPN.
  2. Next to ‘VPN connections’, click on Add VPN.|
  3. Enter the details of your VPN and click Save.
  4. Now, whenever you have to connect or disconnect this VPN, simply bring up quick settings in the system tray and click on your VPN connection.
  5. If you don’t see your VPN connection here, click on the Edit button (pencil icon) > Add > VPN.

Method 2: Via Network and Sharing Center

Now, let’s see how you can add a VPN shortcut. 

  1. Press Start, type “control panel” and hit Enter.
  2. Go to Network and Internet > Network and Sharing Center.
  3. Then in the panel on the left, click on Change adapter settings.
  4. The “Network Connections” window will open up. Right-click on your VPN Connection and click on Create shortcut.
  5. A dialog box will open requesting permission to add the shortcut on the Desktop. Click on Yes.
  6. Now, the VPN shortcut will be added to the desktop. Double-click on it to start your VPN connection.

Method 3: Via the ‘Create Shortcut’ Window

Another, simpler, way to create a VPN shortcut is to do it from the desktop’s context menu itself. Here’s how:

  1. Right-click anywhere on the desktop, select New, and then click on Shortcut.
  2. This will open up the “Create Shortcut” window. Now, in the location field, enter the following and click on Next: C:\Windows\System32\rasphone.exe.
  3. Then give your shortcut a name and click on Finish.
  4. Your VPN shortcut will now be placed on the desktop. Just double-click to open the VPN connection window.
  5. Click on Connect to do so.
  6. For the first time, you will be asked to enter your VPN’s username and password. Enter the same and then click on Connect.
  7. To end the connection, simply click on Hang up.

Method 4: Via a Batch File

You can also create a simple batch file which, when executed, will enable your VPN. Here’s how:

  1. Open a Notepad file. To keep access easy, simply right-click on the desktop, select New, then Text Document.
  2. Copy and paste this script in the notepad file: @ echo off Ipconfig|find/I "vpnexample" && rasdial vpnexample /disconnect || rasdial vpnexample
  3. Now, replace every single instance of vpnexample with the name of your VPN connection. In our example, we’re using VPNBOOK as our connection.
  4. Now, click on File, then select Save as.
  5. From the “Save as type” drop-down menu, select All Files. Then give your file a title and save it as a .bat file. Then click on Save.
  6. The batch file is now created. Double-click it to connect to the VPN.

So these are all the ways that you can create and access your VPN connection and create shortcuts for it on Windows 11. We hope you’ve been able to simplify the task of connecting to your VPN and shave off those precious seconds that go with those additional clicks. Until next time!