Hi Richard Kichman,
I’m following up to check whether the issue has been resolved. Feel free to reply if you need further information. If the information provided was helpful, please click "Accept Answer" to help others in the community. Thank you!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Task Scheduler is completing with a return code 2147942401 after the latest Windows server updates for Server 2022
Hi Richard Kichman,
I’m following up to check whether the issue has been resolved. Feel free to reply if you need further information. If the information provided was helpful, please click "Accept Answer" to help others in the community. Thank you!
Hi Richard Kichman,
The return code 2147942401 translates to “Access Denied,” which usually means the task is running under an account or with permissions that no longer align correctly after the latest patch.
A few steps you can try:
Re‑enter the credentials for the account running the task, and ensure “Run with highest privileges” is checked.
Verify that the account has Log on as a batch job rights in Local Security Policy.
If the task references scripts or executables, confirm that the file paths are still valid and accessible.
Check whether the update reset or tightened permissions on folders or registry keys the task depends on.
Review the Event Viewer logs around the time the task runs for more specific clues.
If the issue persists, you may want to recreate the task from scratch with the same settings, as this often clears hidden corruption introduced by updates.
In short, this error is almost always tied to permissions or credentials, and re‑validating those should get your tasks running again. I hope the response provided some helpful insight. If it clarified the issue for you, please consider marking it as Accept Answer so others with the same issue can find the solution.
Jason.
Return code 2147942401 from Task Scheduler corresponds to an “Access is denied” (0x80070005) error. After installing the latest Windows Server 2022 updates, scheduled tasks that previously worked can start failing with this code if permissions, elevation, or policy requirements are not met.
To resolve this, use the following checks and fixes:
Export-ScheduledTask -TaskName "<task_name>" -FilePath "C:\Temp\<task_name>.xml"
Register-ScheduledTask -Xml (Get-Content "C:\Temp\<task_name>.xml" | Out-String) -TaskName "<task_name>"
If the task still fails with 2147942401 after these steps, focus on what the task actually runs (script, EXE, or command) and test that command directly in an elevated PowerShell or Command Prompt under the same account to see where access is denied.
References: