Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up a VPN 60 141
Site-To-site VPN Natting inbound traffic? 9 71
batch file problem 5 47
msdos loop until a variable value changes 5 17
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…
Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

777 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