Scripting VPN connect - disconnect

Oct 08, 2006 3 Replies

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


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

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

Marc

Thanks Simon, exactly what I was looking for.

Marc

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required