Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Scripting anyconnect

Scripting anyconnect

Scripting anyconnect

We provide support for multiple sites and our access is via Cisco anyconnect [version 4.1.02011]and the older cisco vpn client []

on the old client all is great - we create profiles for each site and can easily select the one we want to connect to.
with anyconnect we cant do that and are manually changing the vpn address ( sometimes the vpn group and manually entering the username and password.

I have found some suggestions for scripting , basically a batch file that runs the vpngui and passes in a text file containing the vpn address username and password.

"C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\vpncli.exe" -s<site.dat

where site.dat contains

I am building a very simple visual basic front end that will allow the selection of a site and a connect and disconnect button.

each selection will result in the running of the batch and the passing in of the data.

this is working for most of our connections that use the default vpn group.

One of the sites uses a vpn group that needs to be specified (not the default)

is there a way to pass the vpn group name into the vpncli using the same site.dat file ?

If I never did anything I'd never done before , I'd never do anything.....

RE: Scripting anyconnect

I found it

if the site has a certificate issue, the dat file needs to be

if the site uses a differnt group , you need the group number and then the dat file needs to be

If I never did anything I'd never done before , I'd never do anything.....

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close