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.

link|improve this question

feedback

1 Answer

Yeah, looks like AnyConnect's GUI is completely ignorant of what's on the command line.

I can think of a couple options:

  1. Avoid the UI completely, and use vpncli.exe that's included by AnyConnect's installer
  2. Wrap a batch file around the vpnui.exe launch, swapping out the preferences.xml file with one containing the desired host. (on win7, my preferences.xml is in my profile at AppData\Roaming\Cisco\Cisco AnyConnect VPN Client)
link|improve this answer
I tried that suggestion. While the vpncli.exe works from the command line, I am unable to get it to load a profile.xml, preferences.xml, nor a AnyConnectProfile.xml from the C:\Program Files\Cisco\Cisco AnyConnect VPN Client\ directory . Anyone know how to do this? – djangofan Jul 6 '11 at 23:28
To clarify, it was two separate suggestions; the UI client is the only thing that's gonna pay attention to preferences.xml, while the CLI client's configuration is all dictated by the command line (so, if you want, you can write a bunch of batch files running vpncli.exe connect host.domain.com). – Shane Madden Jul 7 '11 at 0:54
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.