6
2
The default way to connect to a VPN (standard includedd MS client) seems to be to click on the network icon in the system tray to expand it, then pick the VPN connection, and click the connect button. This brings up a dialog where you can enter your username and password.
I have told the VPN connection to remember my credentials. Is there some way I can skip that dialog and just have it connect?
I have tried using rasdial.exe
, and I can connect as long as I pass the username and password as arguments. It doesn't seem to want to use the stored credentials for some reason, maybe I need to store them with an elevated account.
Thanks - I wasn't familiar with rasphone. When I ran "rasphone -d MyVPN" it just popped up the dialog - it didn't dial automatically. Is there a way to dial automatically and skip the dialog? – Goyuix – 2015-03-28T16:09:55.603
2Read to the end of my post... in vpn properties->options you can disable the password dialog. – Jules – 2015-04-07T22:08:16.630
Once that box is unchecked for "Prompt for name.." both rasphone and rasdial appear to work as desired. Thanks! – Goyuix – 2015-04-08T15:31:56.233
rasphone -d "VPNCONNECTION"
whenOptions
are set as described works for me. For some reasonrasdial
won't use my cached credentials. I'm off & running with rasphone, so I'm happy. Thanks. – rich p – 2015-11-19T16:40:54.553