Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VPN connection setup to connect to my hosted exchange server. I would like to have this VPN open automatically when either

a) MS Outlook 2007 starts

b) There is an open connection to the internet.

I am using Windows 7 Home Premium and I do not wish to use any costly third party tools to manage the VPN connection. The VPN was setup through windows own network and sharing center.

My goal is to be able to turn on my computer and open outlook without having to first connect to the VPN connection.

share|improve this question
up vote 1 down vote accepted

I am not entirely certain how to make it key off either of those two events without some programming on your part - but you can use the RASDIAL command to launch the VPN connection.

Some ideas:

Create a batch file that launches the VPN connection and then launches Outlook as well, maps network drives, etc.

Create a batch file that runs every minute, pings the gateway on the server end of the VPN connection, if the ping fails it launches the VPN connection using RASDIAL?

share|improve this answer
nice one, thanks :-) – Barry-Jon Nov 4 '09 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.