Connection to VPN using command line

Posted by plurby on Super User See other posts from Super User or by plurby
Published on 2012-10-12T08:20:12Z Indexed on 2012/10/12 9:41 UTC
Read the original article Hit count: 220

Filed under:
|
|

I've wrote a simple batch file to connect to a specific VPN connection using RASDIAL

rasdial MyVPNConnection 

but it always returned the error

691 Access denied because username and/or password is invalid on the domain.

Remote Access Service (RAS) Error Code List

then i tried pointing to my Remote Access Phonebook (Rasphone.pbk) and see what happens

rasdial MyVPNConnection /phonebook:%userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk

and still there was an error 691.

I've then unchecked the following

VPN Options tab

but still the same problem was reported when executing my batch file.

© Super User or respective owner

Related posts about command-line

Related posts about vpn