Computing.Net > Forums > Networking > Cisco VPN Autoconnect

Cisco VPN Autoconnect

Reply to Message Icon

Original Message
Name: Analyst
Date: April 2, 2007 at 15:47:13 Pacific
Subject: Cisco VPN Autoconnect
OS: Win2003
CPU/Ram: P4/1GB
Comment:

I figured out how to run the Cisco VPN client from the command line to that I can script it to connect on a schedule.
C:\Program Files\Cisco Systems\VPN Client\vpnclient.exe connect exampleprofile.pcf user <username> pwd <password>

Where I'm hung up on is trying to figure out how to auto respond to the message that comes up requiring you to type "y" to accept the terms and conditions for making a connection. I've tried putting in an "echo y" in the batch file after the connection command line, but that doesn't work.
Any "constructive" suggestions are appreciated.


Report Offensive Message For Removal


Response Number 1
Name: Analyst
Date: April 5, 2007 at 21:07:06 Pacific
Subject: Cisco VPN Autoconnect
Reply: (edit)

I was eventually able to get this going. I remembered back from the past a program called PTFB, or Push The Freakin Button. This program can be trained to click on annoying prompts automatically without the user have to be present to do it. I also found that you can launch the Cisco VPN gui from a command line with the username and password.
So what I did was create a batch file that is scheduled to run with the following command;
"C:\Program Files\Cisco Systems\VPN Client\vpngui.exe" -c -sd -user <username> -pwd <password> <connectionprofile>

When the prompt stating the terms and conditions for connecting comes up requiring you to click on it, PTFB kicks in and clicks on it, then the connection is made.

Later, another batch file is scheduled to run to disconnect;
"C:\Program Files\Cisco Systems\VPN Client\vpnclient.exe" disconnect

Notice that the executable to disconnect is differant than the one to connect.

Hopes this helps anyone else who runs into this unique situation.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Cisco VPN Autoconnect

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge