大网数据广告活动
Windows Server 管理

Scheduled task may not run upon reboot if machine was off at time of task

· 52CE 我爱测

Helps to solve an issue where a scheduled task may not run upon reboot if the machine is off at the time of the task.

This article helps solve an issue where a scheduled task may not run upon reboot if the machine is off at the time of the task.

Original KB number:   2437520

Symptoms

On a Windows Vista, Windows 7, and Windows Server 2008 or Windows Server 2008 R2 machine, a scheduled task may not run upon reboot if the machine was off at the time of the scheduled task.

Cause

This issue can occur if the task trigger was set to run One Time when created. It is possible to set a task to "Run as soon as possible after a scheduled start is missed". This will cause the task to rerun after a reboot if the trigger was missed. However, this does not occur if the task is set to run One Time. This behavior is by design.

Resolution

You can work around this issue by setting a time and date under the Expire option of the task. This option can be reached by opening the Properties of the task, selecting the Triggers tab, and then clicking the Edit button for the trigger in question. If a date and time are set for the Expire option, the task will attempt to refire on reboot if its previous trigger time was missed.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。