cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1783
Views
5
Helpful
1
Replies

Cisco AnyConnect Secure Mobility Client\vpncli.exe is not working from task scheduler

veluva
Level 1
Level 1

Dear all,

 

I am getting below error while run exe from windows task scheduler.

But the same is working fine while manually run the exe.


Connect Anyway? [y/n]:
>> Please enter your username and password.

Username:

Password: >> state: Connecting
>> notice: Establishing VPN session...
>> notice: The AnyConnect Downloader is performing update checks...
>> notice: Checking for profile updates...
>> notice: Checking for product updates...
>> notice: Checking for customization updates...
>> notice: Performing any required updates...
>> notice: The AnyConnect Downloader updates have been completed.
>> state: Connecting
>> notice: Establishing VPN session...
>> notice: Establishing VPN - Initiating connection...
>> state: Disconnecting
>> notice: Disconnect in progress, please wait...
>> error: The VPN client failed to establish a connection.
>> notice: Connection attempt has failed.
>> error: AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again.
>> state: Disconnected

1 Reply 1

After checking all possible fixing tips in blogs, forums, etc, I found the problem in my case was that the Cisco Anyconnect VPN client was being blocked by the Windows Firewall.

 

To solve it, I had to grant permissions to the Cisco Anyconnect VPN Client program (vpncli.exe). 

You can find the instructions to grant permissions for a specific application through the Windows 10 firewall here: 

https://www.technipages.com/blockunblock-programs-in-windows-firewall