I am looking for a way to create a new VPN connection using only the command line. All I see in Google searches are how to connect to an existing VPN connection, which is through rasdial. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can try to use RAS API directly from Java.
If you want to create VPN connection from pure CMD, I’d try to append connection info to rasphone.pbk file in user’s profile (
%APPDATA%\Microsoft\Network\Connections\Pbk\rasphone.pbk).For more ideas see How can I programmatically create a Windows VPN connection?