Xem thêm

Task Scheduler Error and Success Codes Explained

Task Scheduler is an essential tool for running and scheduling tasks on Windows. It allows users to troubleshoot issues and record events. In this article, we will explore the common Task Scheduler error and success...

Task Scheduler is an essential tool for running and scheduling tasks on Windows. It allows users to troubleshoot issues and record events. In this article, we will explore the common Task Scheduler error and success codes and their meanings. Let's dive in and understand these codes better.

Task Scheduler Error and Success Code explained Image Source: starevent.vn

Understanding Task Scheduler Error and Success Codes

Here are some of the common and important Task Scheduler error and success codes you may encounter:

Task Scheduler Code: 0x00041300 - SCHED_S_TASK_READY

This code indicates that the task is ready to run at its next scheduled time. If you see this code, there is nothing you need to do as the task is expected to run normally when scheduled.

Task Scheduler Code: 0x00041301 - SCHED_S_TASK_RUNNING

When you encounter this code, it means that the task is currently running. Just let it continue running without interruption.

Task Scheduler Code: 0x00041302 - SCHED_S_TASK_DISABLED

This code implies that the task will not run at the scheduled times because it has been disabled. To resolve this, enable the task.

Task Scheduler Code: 0x00041303 - SCHED_S_TASK_HAS_NOT_RUN

If you come across this code, it means that the task has not yet run. Wait for the task to run, and if it doesn't, you can try restarting it.

Task Scheduler Code: 0x00041304 - SCHED_S_TASK_NO_MORE_RUNS

When you encounter this code, it signifies that there are no more runs scheduled for the task. It has reached its end.

Task Scheduler Code: 0x00041305 - SCHED_S_TASK_NOT_SCHEDULED

This code indicates that one or more properties needed to run the task on a schedule have not been set. To resolve this, reconfigure the properties of the task you want to schedule.

Task Scheduler Code: 0x00041306 - SCHED_S_TASK_TERMINATED

If the last run of the task was terminated by the user, you will see this code. To avoid further issues, restart the task without interfering.

Task Scheduler Code: 0x00041307 - SCHED_S_TASK_NO_VALID_TRIGGERS

This code suggests that the task either has no triggers or the existing triggers are disabled or not set. Make sure to run the task.

Task Scheduler Code: 0x00041308 - SCHED_S_EVENT_TRIGGER

When event triggers do not have set run times, this code will be displayed. You can go to the properties of the event and set run times.

Task Scheduler Code: 0x80041309 - SCHED_E_TRIGGER_NOT_FOUND

A trigger for the task is not found if you encounter this code. Restart the task to resolve the issue.

Task Scheduler Code: 0x8004130A - SCHED_E_TASK_NOT_READY

This code implies that one or more properties required to run the task have not been set. Check and ensure all necessary properties are configured correctly.

Task Scheduler Code: 0x8004130B - SCHED_E_TASK_NOT_RUNNING

If there is no running instance of the task, this code will be displayed. Make sure the task is running before troubleshooting further.

Task Scheduler Code: 0x8004130C - SCHED_E_SERVICE_NOT_INSTALLED

When the Task Scheduler service is not installed on your computer, this code will be shown. Open Services, look for the Task Scheduler service, right-click on it, and select Start to resolve the issue.

Task Scheduler Code: 0x8004130D - SCHED_E_CANNOT_OPEN_TASK

The task object could not be opened if you see this code.

Task Scheduler Code: 0x8004130E - SCHED_E_INVALID_TASK

This code indicates that the object is either an invalid task object or not a task object. To resolve this, disable the trouble-causing registry from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree.

Task Scheduler Code: 0x8004130F - SCHED_E_ACCOUNT_INFORMATION_NOT_SET

If no account information could be found in the Task Scheduler security database for the indicated task, you will encounter this code. Restart the Task Scheduler service from the Services app and retry.

Task Scheduler Code: 0x80041310 - SCHED_E_ACCOUNT_NAME_NOT_FOUND

When the existence of the specified account cannot be established, this code will be displayed. Disconnect your Microsoft account and then reconnect to resolve the issue.

Task Scheduler Code: 0x80041311 - SCHED_E_ACCOUNT_DBASE_CORRUPT

If corruption is detected in the Task Scheduler security database, causing a reset, this code will be shown. Restart the task to resolve the issue.

Task Scheduler Code: 0x80041312 - SCHED_E_NO_SECURITY_SERVICES

Task Scheduler security services are only available on Windows NT.

Task Scheduler Code: 0x80041313 - SCHED_E_UNKNOWN_OBJECT_VERSION

When the task object version is unsupported or invalid, you will encounter this code. Reconfigure the task to resolve the issue.

Task Scheduler Code: 0x80041314 - SCHED_E_UNSUPPORTED_ACCOUNT_OPTION

If the task has been configured with an unsupported combination of account settings and run-time options, you will see this code. Take a look at the task properties to resolve the issue.

Task Scheduler Code: 0x80041315 - SCHED_E_SERVICE_NOT_RUNNING

When the Task Scheduler Service is not running, this code will be shown. Start the Task Scheduler service from the Services app.

Task Scheduler Code: 0x80041316 - SCHED_E_UNEXPECTEDNODE

This code indicates that the task XML contains an unexpected node. Restart the Task Scheduler service and check the XML file for any issues.

Task Scheduler Code: 0x80041317 - SCHED_E_NAMESPACE

When the task XML contains an element or attribute from an unexpected namespace, you will encounter this code. Restart the Task Scheduler service and check the XML file for any issues.

Task Scheduler Code: 0x80041318 - SCHED_E_INVALIDVALUE

This code suggests that the task XML contains a value that is incorrectly formatted or out of range. Make sure the XML file adheres to the permissible range.

Task Scheduler Code: 0x80041319 - SCHED_E_MISSINGNODE

If the task XML is missing a required element or attribute, this code will be shown. To resolve this issue, use the /V1 switch when creating the task.

Task Scheduler Code: 0x8004131A - SCHED_E_MALFORMEDXML

When the task XML is malformed, this code will be displayed. Use the /V1 switch to create a task compatible with pre-Windows Vista platforms.

Task Scheduler Code: 0x0004131B - SCHED_S_SOME_TRIGGERS_FAILED

This code indicates that the task is registered, but not all specified triggers will start the task. If you encounter this code, reboot the system and then run the task. If the issue persists, reconfigure the task.

Task Scheduler Code: 0x0004131C - SCHED_S_BATCH_LOGON_PROBLEM

This code suggests that the task is registered but may fail to start due to batch logon privilege not being enabled for the task principal. To resolve this, open the Local Group Policy Editor, go to Security Settings/Local Policies/User Rights Administration, double-click on Log on as a batch job, and set a user.

Task Scheduler Code: 0x8004131D - SCHED_E_TOO_MANY_NODES

If the task XML contains too many nodes of the same type, this code will be displayed. Make sure the user specified is logged on.

Task Scheduler Code: 0x8004131E - SCHED_E_PAST_END_BOUNDARY

This code indicates that the task cannot be started after the trigger end boundary. Check the configuration of the task and ensure it adheres to the rules and constraints of the Task Scheduler.

Task Scheduler Code: 0x8004131F - SCHED_E_ALREADY_RUNNING

If there is an instance of the task already running, you will see this code. Wait for the current task to complete before running a new one.

Task Scheduler Code: 0x80041320 - SCHED_E_USER_NOT_LOGGED_ON

This code suggests that the task will not run because the user is not logged on. Make sure to log in with the specified user.

Task Scheduler Code: 0x80041321 - SCHED_E_INVALID_TASK_HASH

If the task image is corrupt or has been tampered with, this code will be shown. Reconfigure the task to resolve the issue.

Task Scheduler Code: 0x80041322 - SCHED_E_SERVICE_NOT_AVAILABLE

When the Task Scheduler service is not available, this code will be displayed. Start the Task Scheduler service from the Services app.

Task Scheduler Code: 0x80041323 - SCHED_E_SERVICE_TOO_BUSY

If the Task Scheduler service is too busy to handle your request, this code will be shown. Wait for a few minutes and then retry. If the issue persists, reboot your computer and then retry.

Task Scheduler Code: 0x80041324 - SCHED_E_TASK_ATTEMPTED

When the Task Scheduler service attempts to run the task but fails due to constraints in the task definition, this code will be displayed. Alter the task to resolve the issue.

Task Scheduler Code: 0x00041325 - SCHED_S_TASK_QUEUED

This code suggests that the Task Scheduler service has asked the task to run. Wait for the task to run as there is nothing more you need to do.

Task Scheduler Code: 0x80041326 - SCHED_E_TASK_DISABLED

When the task is disabled, this code will be displayed. Restart the task to resolve the issue.

Task Scheduler Code: 0x80041327 - SCHED_E_TASK_NOT_V1_COMPAT

If the task has properties that are not compatible with earlier versions of Windows, this code will be shown. Reconfigure the task to resolve the issue.

Task Scheduler Code: 0x80041328 - SCHED_E_START_ON_DEMAND

When the task settings do not allow the task to start on demand, this code will be displayed. You can either reschedule the task or run it manually.

That’s it! You now have a better understanding of the various Task Scheduler error and success codes. Whenever you encounter these codes, refer to this article to effectively troubleshoot and resolve any issues you may face.

Read: Task Scheduler not running, triggering, or starting programs

What is the 0xc0000005 Task Scheduler error?

The 0xc0000005 error is a Windows error that occurs due to corrupted or missing system files. To resolve this issue, repair the system files using Installation Media.

Read: How to run a Scheduled Task as Administrator in Windows?

What is error code 1 in Task Scheduler?

Task Scheduler will report error code 1 when no files are older than 10 days. To avoid getting this error, use the If statement in your script.

Read: Fix Task Scheduler failed to start, Event ID 101.

Let us know if you have any questions or need further assistance. Happy troubleshooting!

1