I am having the following issue related to Cisco AnyConnect and RDP connection on Windows 10.
A script is running at specific times to perfom a task which requires VPN connection. The script is running just fine if run manually. But, when put in a scheduled task, the situation is different. If someone just logs off from the computer, the connection to VPN is established; however, if there was a remote connection, which is now closed, the vpnclient will throw this error: "Unable to retrieve logon information to verify compliance with AnyConnect logon enforcement and VPN establishment profile settings. A VPN connection will not be established."
I have set the task to run with highest privilege and to not require a password. I do not know what else I could do.
I have seen suggestions to kill the connection, but if i do qwinsta, it does not appear in the list so nothing to kill!
www.nomnomnow.one