cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1335
Views
0
Helpful
1
Replies

Cisco anyconnect autoconnect after PC restart

Skriplenok
Level 1
Level 1

Hi Team,


We have a requirement that Anyconnect automatically connects to our network every time we restart the PC.
I use certificate-only authentication. After restarting the client PC starts the Anyconnect client, connects to the Cisco ASA, and gets stuck on the group selection window.
If the user clicks OK in the group list window, Anyconnect continues the connection and establishes a VPN connection.
I use group selection based on the client's OU certificate field and the correct group is selected in the list.


Is it possible to automate the connection process so that the user is not required to click OK in the group selection window?


Kindly request your expertise advice on this.

1 Reply 1

Skriplenok
Level 1
Level 1

I noticed that when I run vpncli.exe I enter the command to connect to Cisco ASA "connect asa.domainname" and then I need to select the correct group from the list of suggested groups. But if I run vpncli.exe through *.bat file, which gets from the file "login_info" only the command "connect asa.domain_name" I do not need to select the group.

When running through the *.bat file I got the required result, but I still don't understand why. Can someone explain why I do not need to select a group from the list when running the *.bat file?

 

bat.bat

cd C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\
vpncli.exe -s < login_info.txt
vpnui.exe

 

login.info.txt

connect asa.domainname