Solved

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

Posted on 2009-07-16
1
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
Robin CM 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
There’s a movement in Information Technology (IT), and while it’s hard to define, it is gaining momentum. Some call it “stream-lined IT;” others call it “thin-model IT.”
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…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

689 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