The Cisco Any Connect Client does not allow you to save a password on the client. This code when saved as a .vbs file will let you get around this. Be warned that the client’s password is saved in clear text in the file. I hide the file in Drivers and create a shortcut to it with the Cisco VPN logo.
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run """%PROGRAMFILES(x86)%\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe""" WScript.Sleep 3000 WshShell.AppActivate "Cisco AnyConnect Secure Mobility Client" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{ENTER}" WScript.Sleep 5000 WshShell.SendKeys "PasswordGoesHere" WshShell.SendKeys "{ENTER}"