01-26-2018 08:58 AM - edited 03-12-2019 04:57 AM
Hi ,
I'm using Cisco AnyConnect Secure Mobility Client (version 4.4.03034) and I have created a batch file which calls vpncli and connects to the vpn server. This batch file is working when I am logged into the server. However, when I schedule the job using task manager it will not run (unless I am logged into the server) .
I also scheduled the job using SQL Server Agent (SQL12 ) and again the task only runs when I am logged into the server . The server is Windows Server 2012. But I did get an interesting error logged when I scheduled though SQL Server :
unable to retrieve login information to verify complience with anyconnect logon enforcement and vpn establishment profile settings.
Can you tell me how anyconnect needs to be configured to allow for it to open a VPN on client server if user is not logged in?
Thanks,
09-15-2022 06:09 AM
Any solution to this issue? I am also facing the same issue. Profile settings are as follows,
<WindowsLogonEnforcement>SingleLocalLogon</WindowsLogonEnforcement>
<WindowsVPNEstablishment>AllowRemoteUsers</WindowsVPNEstablishment>
09-15-2022 06:23 AM
If you are looking for a way to have a VPN tunnel automatically established without a user logged into the PC you should look at the management tunnel functionality. https://www.cisco.com/c/en/us/support/docs/security/adaptive-security-appliance-asa-software/215442-configure-anyconnect-management-vpn-tunn.html
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide