Solved

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

Posted on 2009-07-16
1
302 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

856 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