Microsoft KB Archive/304288

From BetaArchive Wiki

Article ID: 304288

Article Last Modified on 2/22/2007



APPLIES TO

  • 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



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 Description of the Microsoft Windows Registry


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 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 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 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 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 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes



Additional query words: kbMgmtAdmin

Keywords: kbbug kbfix kbwin2000presp3fix kbqfe kbsysadmin kbwin2000sp3fix kbwinxpsp1fix kbhotfixserver KB304288