Solved

need to alter a cisco vpn client script to answer "OK" to a popup error message

Posted on 2009-07-16
1
294 Views
Last Modified: 2012-05-07
I use scripts to automatically start and stop cisco vpn client sessions. They both work fine except that the stop script never closes the client. It WILL disconnect the session like its supposed to but the client it still running and there is a popup on the screen that tells the date and time of the disconnection. You have to click "OK" to get rid of it before the application closes. My problem is, if you DON'T click "OK" to this message then my start script the next day will fail with error "Secure VPN Connection terminated locally by Client. Reason 413: User authentication failed." Is there a piece of code that will allow me to have the script answer the "OK" to the disconnection message? Doing this would resolve my issue.
0
Comment
Question by:neilmccabe
1 Comment
 
LVL 14

Accepted Solution

by:
robincm earned 500 total points
ID: 24874453
Using VBScript you can do:
oShell.SendKeys "{ENTER}"

Better still, if the window has a title bar with text in it you can use something like:
Do While oShell.AppActivate("Title Bar Text")=False
   WScript.Sleep 500
Loop
oShell.SendKeys "{enter}"

If you don't like VBScript (why???) then use something like AutoIt:
http://www.autoitscript.com/autoit3/
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have an ASA5510 then this sort of thing would be better handled with a CSC Module, however on an ASA5505 thats not an option, and if you want to throw in a quick solution to stop your staff going to facebook during work time, then this is the…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now