Romas Posted June 1, 2007 Share Posted June 1, 2007 Hi allDoes anyone know if it's possible to create a PPTP VPN via a command line rather than using the New Connection Wizard? I thought that NETSH might be the answer but I can't figure it out...Any help greatly appreciated..RegardsPaul Link to comment Share on other sites More sharing options...
Sonic Posted June 1, 2007 Share Posted June 1, 2007 Create once the vpn connection by wizard and backup the .pbk file. After you can use command line :Connect rasdial NameOfConnection user pass /phonebook:file.pbkDisconnect rasdial NameOfConnection /disconnectSample .pbk file [NameOfConnection]ShowMonitorIconInTaskBar=0IpPrioritizeRemote=0MEDIA=rastapiPort=VPN9-0Device=Miniport réseau étendu (L2TP)DEVICE=rastapiPhoneNumber=ip or dns name Link to comment Share on other sites More sharing options...
cluberti Posted June 2, 2007 Share Posted June 2, 2007 Also, if you have a 2003 server you have access to, you can use the CMAK to create one. Link to comment Share on other sites More sharing options...
Romas Posted June 5, 2007 Author Share Posted June 5, 2007 Thank you both for your responses.From the info provided by Sonic I now know that it's the contents of the .pbk file I need to create (I have about 30 VPNs I need to add and I didn't want to have to add them manually, so was hoping there was some kind of import I could do). Is there a way of "importing" these details into my existing .pbk file? I've had a look at rasphone and rasdial but could not see an option to do this.@clubertiI was not aware of this tool but it will certainly come in use in the future Thanks againPaul Link to comment Share on other sites More sharing options...
Sonic Posted June 5, 2007 Share Posted June 5, 2007 You can add the content to your actual .pbk file with batch like "echo xxxx >>file.pbk" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now