Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Does anybody know if its possible to create a Windows PPTP VPN connection from the command line for XP/Vista machines? This will allow me to do somethings via Group Policy.


share|improve this question
Are you talking about a pptp VPN connection? – geeklin Aug 25 '09 at 15:08
Sorry - yes its a PPTP VPN with XP/Vista Clients. – hulbs9nw Aug 25 '09 at 15:24
RASDIAL is what you're looking for -- see my question, answered by John Rennie. If this helps you, upvote his answer. – nedm Oct 9 '09 at 20:37

You'll really enjoy the Connection Manager Administation Kit if you want to create a maintainable method for distributing VPN connection information. The CMAK also lets you do some neat things like running a script when the VPN connection starts.

You can use this tool to create a program to generate an EXE that automatically configures client computers with a "connection" to your VPN server. We typically deploy it onto client computers using startup scripts with a registry-based versioning mechanism to cause computers to install new versions if we deploy them.

share|improve this answer
+1 This is the best way to go. Use the tutorial and you're good to go. – Hondalex Aug 25 '09 at 18:32

Not sure what the details are (OS version and type of firewall), but NETSH should do the trick for you. See if this helps:

share|improve this answer
I have managed to solve my problem by using the information in the following link:-… – hulbs9nw Aug 25 '09 at 16:18

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.