Windows – Create a Windows VPN Connection from the cmd line

command-line-interfacevpnwindows

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.

Regards

Best Answer

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.