Auto-connect to VPN upon system restart

yoniy

New member
Local time
11:50 AM
Messages
1
I need to connect to a VPN in order to use my university's exchange email client.
Does anybody know if I can define it to connect automatically when my system starts? As it is, I need to manually connect each time (which isn't that difficult, but I rather not having to do it).

I'm using Win7 RC (7100), and am connected to the internet using a cable modem.
 

My Computer My Computer

OS
Windows 7 RC (Build 7100)
Create a scheduled task named "Auto VPN" or something similar
Tick the Run whether user is logged on or not
Tick the Run with highest privileges
Select Configure for Windows 7, Windows Server 2008 R2 in the Configure For drop down box
Create a the trigger for the task and set the Begin the task drop down to At startup
Create an action for the task and set the action to Start a program
Set the Program/script to c:\windows\system32\rasdial.exe
Put the name of the connection to be made in the Add Arguments box*
*If the name contains spaces you will need to enclose the name in quotation marks
*You may need to additional rasdial parameters to the Add Arguments box dependant on the connection properties
Clear all task Conditions

The end result should be that your VPN connection is automatically connected on Start up. You can also configure the connection for login or even a specific user's login.

Cheers:)
 

My Computer My Computer

OS
Windows 7
Create a scheduled task named "Auto VPN" or something similar
Tick the Run whether user is logged on or not
Tick the Run with highest privileges
Select Configure for Windows 7, Windows Server 2008 R2 in the Configure For drop down box
Create a the trigger for the task and set the Begin the task drop down to At startup
Create an action for the task and set the action to Start a program
Set the Program/script to c:\windows\system32\rasdial.exe
Put the name of the connection to be made in the Add Arguments box*
*If the name contains spaces you will need to enclose the name in quotation marks
*You may need to additional rasdial parameters to the Add Arguments box dependant on the connection properties
Clear all task Conditions

The end result should be that your VPN connection is automatically connected on Start up. You can also configure the connection for login or even a specific user's login.

Cheers:)



Would love for this to work on my computer. But for some reason (probably the rasdial failure) it don't work. Contacted M$ and have had an appointment but they never phoned me.:huh:
 

My Computer My Computer

OS
Stools
This might be a silly question but do you have rasdial.exe on your system?

You can test this by opening a command prompt and typing RASDIAL and pressing enter. You should see something like "No connections - Command Completed Successfully".

Assuming you do...

When initially setting this up I tried using RASDIAL and passing my connection name, user name and password as parameters but I couldn't get this to work. In frustration I tried the shortened version with just the connection name and it worked first time. Try using RASDIAL at a command prompt with various options to see if you can get it to work for you. Once you get the right command, the rest is fairly simple.

Yet another consideration, if you have trouble setting up the scheduled task and passing additional arguments, you can always create a simple batch file in your Windows\System folder and have the scheduled task simply call the batch file. This eliminates the need for additional arguments in your scheduled task.

I hope this will prove helpful

Cheers :D
 

My Computer My Computer

OS
Windows 7
If i done the above in a command prompt, what would the syntax be? not to schedule the task, just to load the connection?
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Could have failed due to not allowing it to delay task. Set to like 2 - 3 minutes depending on how long it takes for your NIC driver to initialize.
 

My Computer My Computer

OS
7 Pro
Hi,

There is a program called VPN Dialer 2012 which accomplishes this exactly (has a wizard that is easy to step through, installs as a service, and keeps VPN connected from bootup until shutdown, and does not require logging in).

Eric
 

My Computer My Computer

OS
Windows XP Professional
Back
Top