I am registering task in Windows Task Scheduler with settings "Run whether user is logged on or not" and "Do not store password. The task will only have access to local computer resources." enabled.
When task triggers it is failing and in history of task I am seeing error "Launch Failure".
In event viewer, I am seeing error as below -
Task Scheduler failed to log on "\1_TEST_Task" . Failure occurred in "LogonUserS4U" . User Action: Ensure the credentials for the task are correctly specified. Additional Data: Error Value: 2147943726.
Task Scheduler failed to start "\1_TEST_Task" task for user "************". Additional Data: Error Value: 2147943726.
1_TEST_Task - This is my task name.
When I uncheck "Do not store password. The task will only have access to local computer resources." , task triggers successfully and not having any issues.
I have verified below things -
- That the domain account used while registering task is having correct username and password.
- Domain account is present under Log On as a Batch Job Policy and not present in any of deny policies.
- Domain account is not Sensitive.
- Also, this task is not accessing any remote/network resources.
Can somebody please help me to pinpoint potential causes of this issue as I want "Do not store password. The task will only have access to local computer resources." enabled ?
This was working fine earlier and now I am using new service account with different domain to register task in windows task scheduler.
