| Previous | Next |
| SCHED_S_TASK_HAS_NOT_RUN | SCHED_S_TASK_NOT_SCHEDULED |
SCHED_S_TASK_NO_MORE_RUNS
Scheduled task has no future run times
SCHED_S_TASK_NO_MORE_RUNS is HRESULT 267012 (0x00041304) from winerror.h. The documented description is “There are no more runs scheduled for this task.” The severity bit indicates a nonfailure result, but the value carries a specific condition that must not be collapsed into plain S_OK.
In the Task Scheduler state query, this result means that there are no more runs scheduled for this task. Treat it as a distinct branch whose postcondition must be proven before subsequent operations begin.
Where the status is encountered
- Task Scheduler status monitoring; log the exact method and object state instead of interpreting the constant outside that contract.
- Deployment or maintenance task validation; log the exact method and object state instead of interpreting the constant outside that contract.
- Automation that reads task state before starting work; log the exact method and object state instead of interpreting the constant outside that contract.
Evidence to preserve
- Preserve trigger start and end boundaries.
- Preserve repetition duration and interval.
- Preserve last run result.
- Preserve expired trigger identifiers.
- Preserve task purpose and retirement policy.
What must be true before accepting it
Verify that all triggers are exhausted or bounded such that no future eligible execution remains. The caller should make the acceptance test explicit in code and telemetry.
Inspect the current generation of every affected object before deciding what happens next.
Correct handling and recovery
Review end boundaries, repetition limits, one-time triggers, and disabled triggers. Add or extend a trigger only when future execution is required; otherwise archive or remove the task according to policy.
Distinguish protocol continuation from retrying the entire high-level operation.
Difference from nearby results
SCHED_S_TASK_NOT_SCHEDULEDIt
Practical scenario
A certificate-renewal migration task was configured for three attempts.
References
- Microsoft: Task Scheduler error and success constants — official Microsoft material relevant to this HRESULT.
- Microsoft: Task Scheduler reference
- Microsoft: HRESULT values
Looking for a different code? Search another status or error code.
