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

Any Connect Start via Commandline but visible in systray?

Hello,

I have a script for connecting VPN (anyconnect). I does, however, only run if the program itself is not started, yet. When it connects, there is no indication of a live VPN connection in the taskbar/systray, as it would be if AnyConncet were started via the desktop.

 

Is there a way to have the program start from the commandline / a script but WITH displaying its status in the systray?

 

1 Reply 1

Sheraz.Salim
VIP Alumni
VIP Alumni

The default installation path is "C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client". now here you can either open a command prompt or create a script file, following command to start the AnyConnect VPN client

vpncli.exe connect <profile> user <username> pwd <password> hideuserstore

the above syntax/command, the AnyConnect should start and establish a connection, and its status would be displayed in the system tray. 

please do not forget to rate.