Auto Connect a VPN on Windows 10 at Start Up

post

11 June 2017 1 min read

vpn, network, security, privacy

Here’s a handy little command for a .bat file for those of you that may use a VPN, and would like to forget about having to automatically enable it.

rasdial myVPN

Open up Notepad and paste the above in, and make sure you replace myVPN with the name of your VPN connection, save the file as .bat into your Start-up folder. You should find the Start-up folder here on Windows 10, obviously just replace USERNAME with your Windows Username.

C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Then, next time you are starting up, you’ll see a command prompt window pop-up and you’ll see it logging into the VPN, and your good to go.

About

I'm a technology professional that's been passionate about computers since my Grandad introduced me to a Pentium 386 back in the 90's when I was a kid. It inspired within me a passion for technology, and I've been messing around with anything with a circuit board ever since. Whenever I have a spare moment you'll probably find me working on something "techy", and this is the place I write all about it. Get in touch