I hate the few seconds I have to spend typing the password into the VPN client. I have come across an AHK script that helps with that. It works about 85% of the time..

Note: Requires AutoHotKey

Part 1

Download this AHK script and place it somewhere you like.


Part 2

Create a batch file to call the above script with the parameters

AnyConnect.ahk <vpn-url> <username> <password>

My batch script is as follows:

@echo off
taskkill /F /IM vpnui.exe
AnyConnect.ahk vpn.marklabvpn.com mark007 Password123
@echo on