Error: A specified logon session does not exist. It may already have been terminated
说明
The following error appears when trying to run data collector via a schedule task:
[Error] A specified logon sessiondoes not exist. It may already have been terminated. (Exception from HRESULT:0x80070520)
原因
When attempting to schedule the task, it appears that it is unable to complete due to an inability to store the credentials for the user. This is typically seen if the following setting has been disallowed in the GPO (or local security policy):
"Network access: Do not allow storage of credentials or .NET Passports for network authentication"
解决办法
WORKAROUND:
Disable the following setting from the GPO or local policy:
"Network access: Do not allow storage of credentials or .NET Passports for network authentication"
Note: the change above needs to be permanent, otherwise the schedule task will fail.