Simple VPN autoconnect for Windows 8 and 10

Since Windows 7, for some reason VPN support in new Windows versions has annoyingly decreased in quality. You can't create shortcuts to VPNs on the desktop or in the start menu anymore; you can't set up a VPN connection to automatically connect on start up; and with Windows 10 there is even a bug (at the time of writing this article) that makes you click on another connection item in the list before the Connect button appears.

The simplest way to achieve automatic VPN connection on computer start-up is to create a batch/cmd file with the following command:
rasdial "VPN Connection" username password

Where:
- rasdial is the name of the command-line utility that will perform the connection
- replace "VPN Connection" by the actual name of the VPN connection
- replace username by your actual VPN user name
- replace password by your actual VPN password

If you want the VPN connection to be started when you log on, simply place this batch script into your startup folder: press Win+R to run 'shell:startup', this will open a folder in which you can place programs or shortcuts to be ran on startup.

UPDATE: or use this tool - VPN AutoConnect

Comments

Anonymous said…
Ready to elevate your dining experience to new heights? Look no further than the upscale restaurants where pizza reigns supreme. Here, culinary excellence meets gastronomic innovation, resulting in pies that are as visually stunning as they are delicious. From the moment you step through the door, you'll be greeted by the tantalizing aroma of freshly baked dough and savory toppings. Every slice is a masterpiece, crafted with care and attention to detail to ensure maximum flavor and enjoyment. So why settle for ordinary when you can indulge in the extraordinary? Treat yourself to the best pizza in town at https://madeinnewyorkpizza.com/upper-west-side-pizza/.

Popular posts from this blog

Affiliate module for Interspire Shopping Cart

How to fix: Outlook on iOS/iPhone: "No Internet Connection"

Dealing with Nginx 400 Bad Request HTTP errors