Saturday 18 November 2017

networking - Single-Click to connet to VPN on Windows 10

I'm creating a batch file to connect to VPN on Windows 10 by a Single-Click. The VPN is using PPTP. Below is the command I've tried and different problems I faced:


1) rasphone -d "VPN NAME"**


Problem: A dialog popped up and ask for confirmation. How can I make it dial automatically without such dialog? I see in this thread (Windows 7 default VPN - Single Click to Connect) and people said we can go into the option tab of the properties for the VPN connection and uncheck "Prompt for name and password, certificate, etc.". However, I can't find such option.


2) rasdial "VPN NAME"


Problem: It doesn't work. VPN not connected. A error message was shown telling me the login credential is not correct


3) rasdial.exe "VPN NAME" "USERNAME" "PASSWORD"


Problem: Even it is worked, but I don't want to type my password in such command as it may have some security problem. I've already saved my credentials in the VPN property, how can I ask rasdial to use those credentials automatically?


Thanks so much.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...