Skip to content

Instantly share code, notes, and snippets.

@andreinitescu
Forked from paveleremin/Cisco.vbs
Created December 2, 2020 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreinitescu/f7eb0cc76d21a0397735c27655cc8781 to your computer and use it in GitHub Desktop.
Save andreinitescu/f7eb0cc76d21a0397735c27655cc8781 to your computer and use it in GitHub Desktop.
Cisco AnyConnect: save password
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