Command Line VPN Start and Stop ?

  • Thread starter Thread starter SteveC
  • Start date Start date
S

SteveC

Can anyone point me to a command line program that will let me open
and close a VPN connection, to be used in a batch or script
environment? I just want to use an already-existing definition for a
given user, not create one.

Thanks.
 
Hi Steve,

Have you tried rasdial.exe tool? With this tool you can connect and
disconnect a VPN connection from command line. This comes on the OS by
default.

Here is the help:

rasdial /?
USAGE:
rasdial entryname [username [password|*]] [/DOMAIN:domain]
[/PHONE:phonenumber] [/CALLBACK:callbacknumber]
[/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

rasdial [entryname] /DISCONNECT

rasdial

Command completed successfully.


--
Thanks
Chetan
(e-mail address removed)

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top