Automatically Connect to MS VPN on system Startup


I have computers on a domain at work that need to automatically login to a VPN
network connection after system startup(login).
Without the users needing to enter their login username/password to connect.
So the users do not see it , it just connects to the VPN.

Is their a possible script that could do this

Who is Participating?
blin2000Connect With a Mentor Commented:
quoted from 

How to start VPN when logon
You may have many options to connect a VPN server automatically when logon a workstation. Here are some of them.

1. Add pre-setup VPN auto-connection by CMAK to the Startup.
2. Create a logon batch with rasdail command to start the VPN connection.
3. How to run a program when a machine starts

Previous Page   Next Page

Stuart_JohnsonConnect With a Mentor Commented:
Hi there,

Create your VPN connection as you normally would and give it a simple name (like MyVPN or something like that).

Create a batch file called LauchVPN.BAT
Inside the batch file, add the following lines:

RASDIAL MyVPN username password

Save the file (I'd save it to the Windows (or WINNT) folder).

Replace username with the username of the person and the password with their password.

Next, open Explorer and navigate to the user's startup folder (%USERPROFILE%\Start Menu\Programs\Startup).  Create a new shortcut pointing to batch file you've just created.  

When the user reboots, that VPN connection will be launched automatically.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.