A Task That Is Scheduled with the AT Command May Stop After 72 Hours
This article was previously published under Q304288
This article has been archived. It is offered "as is" and will no longer be updated.
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
Jobs that you schedule by using the at command are converted to Task Scheduler tasks. By default, these tasks are set to stop after 72 hours.
Jobs that you schedule with the at command do not have a maximum run time. The behavior of stopping after 72 hours was introduced with Windows 2000. A new registry value has been introduced to override this default value.
Windows 2000To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service PackThe English version of this fix should have the following file attributes or later:
Date Time Version Size File name ---------------------------------------------------- 03-Oct-2001 14:41 4.71.2195.1 219,408 Mstask.dll 03-Oct-2001 14:40 4.71.2195.1 118,544 Mstask.exe
Using the New Registry ValueWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
- Start Registry Editor (Regedt32.exe).
- Locate and click the following key in the registry:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule
- On the Edit menu, click Add Value, and then add the following registry value:Value name: AtTaskMaxHours
Data type: REG_DWORD
Value data: 72 (the default value)
A value of 0 indicates no limit (that is, the task is not stopped). A value between 1 and 999 indicates the number of hours the task is allowed to run after it starts.
- Quit Registry Editor.
Windows XPTo resolve this problem, obtain the latest service pack for Windows XP. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
322389 How to Obtain the Latest Windows XP Service Pack
You can edit the maximum run time for a task by using the Task Scheduler tool after you submit the task. The registry value that is listed earlier in this article controls the default run time for tasks that you submit by using the at command.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Windows 2000 Service Pack 3 (SP3) and Microsoft Windows XP Service Pack 1 (SP1).
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:
265173 Datacenter Program and Windows 2000 Datacenter Server ProductFor additional information on how to install multiple hotfixes with only one reboot, click the article number below to view the article in the Microsoft Knowledge Base:
296861 Use QChain.exe to Install Multiple Hotfixes with One RebootFor additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:
249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes
Article ID: 304288 - Last Review: 12/06/2015 04:15:41 - Revision: 3.3
Microsoft Windows 2000 Service Pack 1, Microsoft Windows 2000 Service Pack 2, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Service Pack 1, Microsoft Windows 2000 Service Pack 2, Microsoft Windows XP Professional, Microsoft Windows XP Home Edition
- kbnosurvey kbarchive kbbug kbfix kbwin2000presp3fix kbqfe kbsysadmin kbwin2000sp3fix kbwinxpsp1fix kbhotfixserver KB304288