Cisco Anyconnect Cmd



I have 2 VPN and sometimes I should switch them very often. I decided to create .bat file which could connect to desired VPN with credentials set in this file.

How to uninstall Cisco AnyConnect (Windows) This guide is not intended for Deakin-managed (SOE) Windows machine. It is only applicable to the following computers: a Non-Deakin (BYO) Windows machine; a Deakin-owned Windows machine that has a non-Deakin image installed; Note: You require admin rights on your computer to complete these instructions. In the Cisco AnyConnect Secure Mobility Client pane, click Disconnect. Figure 7: Close Cisco AnyConnect Secure Mobility Client. You are now disconnected from VPN. Mac OSX: To disconnect from a VPN connection on Cisco AnyConnect on Mac running Mac OS X or later: Click on the Cisco AnyConnect icon in your Dock. Click Disconnect. Proceed with the way that how to Connect to VPN Server with Cisco AnyConnect from Linux Terminal. It’s easy to connect from desktop but this article help those who want to use Command line Interface.

So I create .bat file with following code:

Where 1.txt contains credentials of VPN #1 which has trusted cerficate.
here's what 1.txt contains:

Cached

Where 1 goes for GROUP with number 1.

The second VPN is untrusted and I have this prompt awaring me what VPN is untrusted. I used similar code for .bat file:

And following data in 2.txt:

('y' goes for accepting untrusted server)

Cisco anyconnect cmd download

Cisco AnyConnect VPN Client Administrator Guide, Version 2.0

But now it says 'Login failed' after entering password is prompted and then it appears in loop and never stops.

Cisco Anyconnect Log In

The question is: how should I modify my 2.txt file to make script connect to VPN #2?