DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 304288 - Last Review: February 22, 2007 - Revision: 3.3

Hotfix Download Available
View and request hotfix downloads
 
This article was previously published under Q304288
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  (http://support.microsoft.com/kb/256986/EN-US/ ) Description of the Microsoft Windows Registry

On This Page

SYMPTOMS

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.

CAUSE

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.

RESOLUTION

Windows 2000

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910  (http://support.microsoft.com/kb/260910/EN-US/ ) How to Obtain the Latest Windows 2000 Service Pack
The 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 Value

WARNING: 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.

  1. Start Registry Editor (Regedt32.exe).
  2. Locate and click the following key in the registry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule
  3. On the Edit menu, click Add Value, and then add the following registry value:
    Value name: AtTaskMaxHours
    Data type: REG_DWORD
    Radix: Decimal
    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.
  4. Quit Registry Editor.

Windows XP

To resolve this problem, obtain the latest service pack for Windows XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
322389  (http://support.microsoft.com/kb/322389/EN-US/ ) How to Obtain the Latest Windows XP Service Pack

WORKAROUND

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.

STATUS

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).

MORE INFORMATION

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  (http://support.microsoft.com/kb/265173/EN-US/ ) Datacenter Program and Windows 2000 Datacenter Server Product
For 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  (http://support.microsoft.com/kb/296861/EN-US/ ) Use QChain.exe to Install Multiple Hotfixes with One Reboot
For 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  (http://support.microsoft.com/kb/249149/EN-US/ ) Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

APPLIES TO
  • Microsoft Windows 2000 Service Pack 1
  • Microsoft Windows 2000 Service Pack 2
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
Keywords: 
kbbug kbfix kbwin2000presp3fix kbqfe kbsysadmin kbwin2000sp3fix kbwinxpsp1fix kbhotfixserver KB304288
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support