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:
@ECHO OFF
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.
Cheers,
Stuart.
Main Topics
Browse All Topics





by: blin2000Posted on 2006-05-30 at 07:32:25ID: 16790048
quoted from http://www.howtonetworking .com/VPN/a utorasdial 1.htm
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