How do I configure the Cisco VPNUI client as a shortcut to open a specific host? As far as I can tell, the program doesn't take an command line arguments, or does it?
The problem is that the VPNUI.exe doesn't remember a history of VPNs you have connected to in the past, as most other software programs would do.
you need to create an usual text file like
save it as myfile.dat (for example) and then call
Yeah, looks like AnyConnect's GUI is completely ignorant of what's on the command line.
I can think of a couple options:
vpncli.exe
that's included by AnyConnect's installervpnui.exe
launch, swapping out thepreferences.xml
file with one containing the desired host. (on win7, my preferences.xml is in my profile atAppData\Roaming\Cisco\Cisco AnyConnect VPN Client
)I'm having a similar issue however I was able to get multiple profiles by adding a second
profile.xml
toC:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile
. The ProgramData folder is/was hidden.I originally had an AnyConnectVPN.xml file there, which I duplicated and renamed profile.xml with the information for my other connection. However when I run
VPNCLI.exe connect <profile name>
... it still prompts for username and password which isn't very helpful...Hi i tried a lot of things and the below is what worked for me