In an XP Pro workstation, is there a way to start the native Windows VPN client and open/close a connection from the command line so it can be scripted in a batch file?
|
feedback
|
|
Yes, if the VPN connection is called "My VPN" then:
will dial the connection. Helpfully it sets errorlevel to the RAS error code if it fails to connect, so your script can detect a connection failure. If you need to supply a username and password instead of using the saved credentials use:
JR | |||||||||
feedback
|
|
I have not seen a command line scheme for the client yet. But, that does not mean it cannot be automated in scripts. Here is a two step approach,
If I recollect correctly, the code for pressing enter on a window is simply,
Look at the Send command. You can setup AutoIt on one of your administration machines, get the script working, make and executable for it, and give it to the users. It can then be launched from command line as an executable. | ||||
|
feedback
|