We help IT Professionals succeed at work.

How to configure a VPN through a batch file or some kind of installer

Last Modified: 2009-04-23

I have a server in which people can log into via VPN and access particular share points. once logged into the VPN, I have written a program that will map a user's share point to their 'My Computer' (they must first connect to the VPN network).

My problem is that it takes 2-3 minutes to setup a VPN on the client machine. I would like to know if there is some way I can write an installer that will automatically setup the actual VPN for the client machine. This will obviously be used only once - from then on, my program can mount the share points (through a batch file).


So to simplify the request - is there any way I can actually INSTALL / SETUP a VPN on the Windows XP client machines so they can access the network? Any examples using a batch file would probably be the most ideal option for me.. But I am open to any suggestions ..

Thanks a lot!

PS My programming skill is high enough to dynamically create batch files and launch them on the fly. So bare that in mind - as long as I have a template that works, the username and password can be inserted into the batch file before it launches!
Watch Question


thanks for the feedback .. This may work but it's only for Windows Vista .. I have an overwhelming larger userbase of WindowsXP ..

Any other suggestions?
It's been around for years ... since W2K at least ...


it seems the help builder part is only for vista .. I looked at the other links .. I've try it out - thanks a lot!

Unlock this solution and get a sample of our free trial.
(No credit card required)


Hi Matrixnz!

The pbk route worked like a charm! Thanks a lot!


Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.