Scripting VPN connect - disconnect

Scripting VPN connect - disconnect

NewsGroups | Search | Tools
 comp.dcom.vpn  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Scripting VPN connect - disconnect Marc-A 10-08-2006
Posted by Marc-A on October 8, 2006, 6:38 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
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



Pure Networks
Posted by Simon on October 9, 2006, 11:33 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Marc-A wrote:
> 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

Posted by Marc-A on October 10, 2006, 7:08 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Thanks a lot Simon,
exactly what I was looking for.

Marc

> Marc-A wrote:
>> 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



Posted by Marc-A on October 10, 2006, 7:10 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Thanks Simon,
exactly what I was looking for.

Marc

> Marc-A wrote:
>> 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



Similar ThreadsPosted
VPN doesn't disconnect July 26, 2007, 6:00 am
connect but nothing shows? December 20, 2006, 8:22 pm
Can connect but cannot see shared resources March 8, 2005, 4:27 pm
Connect to internet through other connection March 9, 2005, 1:37 am
XP Pro trying to connect to SBS 2003 from Home May 8, 2005, 12:53 am
Unable to Connect with l2tp August 27, 2005, 9:10 pm
Cant see network files via VPN - but can connect October 7, 2005, 5:15 pm
PPTP VPN Startup Connect October 16, 2005, 3:55 pm
I can't view my network after connect through vpn November 13, 2006, 1:51 pm
Netgear FVS328 - how to connect without ProSafe? February 7, 2005, 2:02 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map