Change VPN in Windows 7 from command line
Solution 1:
I have not got a PPTP connection set up to test this at the moment, but you could try making two connections in %userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk\
. The default connection is rasphone.pbk
.
You could just execute them using the full path from the commmand line, but I am not sure if the first one automatically disconnects when you use the second one, as I cannot test it.
Solution 2:
I was able to do it with the rasdial command
rasdial /disconnect
rasdial connection_name user pass /phone:host.example.com
Source: Microsoft resources and some guy.