Computing.Net > Forums > Networking > Cisco VPN Autoconnect

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Cisco VPN Autoconnect

Reply to Message Icon

Name: Analyst
Date: April 2, 2007 at 15:47:13 Pacific
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.



Sponsored Link
Ads by Google

Response Number 1
Name: Analyst
Date: April 5, 2007 at 21:07:06 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: Cisco VPN Autoconnect

Cisco VPN client problem www.computing.net/answers/networking/cisco-vpn-client-problem/37318.html

Cisco vpn client down www.computing.net/answers/networking/cisco-vpn-client-down/36599.html

Cisco VPN Client Doesn't Connect www.computing.net/answers/networking/cisco-vpn-client-doesnt-connect/32130.html