Created
February 24, 2017 06:45
-
-
Save paveleremin/323cf97e97990278d5ae321573c55f71 to your computer and use it in GitHub Desktop.
Cisco AnyConnect: save password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set WshShell = WScript.CreateObject("WScript.Shell") | |
WshShell.Run """%PROGRAMFILES(x86)%\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe""" | |
WScript.Sleep 1500 | |
WshShell.AppActivate "Cisco AnyConnect Secure Mobility Client" | |
WshShell.SendKeys "{TAB}" | |
WshShell.SendKeys "{TAB}" | |
WshShell.SendKeys "{ENTER}" | |
WScript.Sleep 3500 | |
WshShell.SendKeys "YourPassword" | |
WshShell.SendKeys "{ENTER}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brilliant! Thanks so much.