Hello,
I have configured a VPN connection using the "connect to a network", and have saved my username and password and the domain name and ticked the box to save these details for any user of the computer.
When I click on the network icon and then on the VPN definition, then the Connect button, the computer dials and connects to the VPN and works perfectly, just as expected. It works on two computers, one runing Windows 7, the other running Server 2008R2.
I have also written a bat file which allows me to script the connection, so I have included the line
rasdial "connectionname"
I run the bat file as administrator, because it sets up some static routes after the connection is made.
When I run the bat file under Windows 7, it connects to the VPN, and all is fine.
However, although I can manually start up the VPN from the icon on the system tray with Server 2008R2, I can't get the same bat file to work.
when I run rasdial "connectionname" on 2008R2, I get
Remote Access error 691
with the explanation that the username and password are wrong or the selected authentication protocol is not permitted on the remote access server.
This is strange, as it works from the GUI but not from the rasdial command.
I haven't tried putting the username and password in the bat file as I don't want the password in the clear, and anyway it's already saved against the connection name, for all users.
So, why does it work on Win7 and not 2008R2.... any ideas? Thanks!
I have configured a VPN connection using the "connect to a network", and have saved my username and password and the domain name and ticked the box to save these details for any user of the computer.
When I click on the network icon and then on the VPN definition, then the Connect button, the computer dials and connects to the VPN and works perfectly, just as expected. It works on two computers, one runing Windows 7, the other running Server 2008R2.
I have also written a bat file which allows me to script the connection, so I have included the line
rasdial "connectionname"
I run the bat file as administrator, because it sets up some static routes after the connection is made.
When I run the bat file under Windows 7, it connects to the VPN, and all is fine.
However, although I can manually start up the VPN from the icon on the system tray with Server 2008R2, I can't get the same bat file to work.
when I run rasdial "connectionname" on 2008R2, I get
Remote Access error 691
with the explanation that the username and password are wrong or the selected authentication protocol is not permitted on the remote access server.
This is strange, as it works from the GUI but not from the rasdial command.
I haven't tried putting the username and password in the bat file as I don't want the password in the clear, and anyway it's already saved against the connection name, for all users.
So, why does it work on Win7 and not 2008R2.... any ideas? Thanks!