Scripting VPN connect - disconnect

Hi, I have an existing VPN connection (in Windows XP) to my office that works fine. For backup purposes, I would like to launch that connection using a script ... do my backup ... and then disconnect. I would like to do that unattended using the schedular. Does anyone know how to launch an existing VPN connection using a script ? and how to disconnect ?

Many thanks ! Marc

Reply to
Marc-A
Loading thread data ...

Hi Marc,

How about the rasdial at the command line:

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

rasdial [entryname] /DISCONNECT

rasdial

Command completed successfully.

C:\\>

Simon

Reply to
Simon

Thanks a lot Simon, exactly what I was looking for.

Marc

Reply to
Marc-A

Thanks Simon, exactly what I was looking for.

Marc

Reply to
Marc-A

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.