Microsoft KB Archive/843537

= Scheduled tasks that you create and rename by using the at command may not run correctly on a computer that is running Windows 2000 with Service Pack 4 =

Article ID: 843537

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 4
 * Microsoft Windows 2000 Professional Edition

-





SYMPTOMS
You have a computer that is running Microsoft Windows 2000 with Service Pack 4. You use a batch file that uses the at command to create and then rename scheduled tasks, or you use a script that uses the at command to create and then rename scheduled tasks. In this scenario, these scheduled tasks may not run correctly. Additionally, when the batch file tries to rename the scheduled tasks, you may receive an error message that is similar to the following:

&quot;Daily File Maint.job&quot; (CMD.EXE) 5/7/2004 7:29:11 AM ** ERROR **

File access is denied.

The specific error is:

0x80070005: Access is denied.

Only Administrators may access files of this type.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
No prerequisites are required.

Restart requirement
You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Windows 2000, x86-based versions


WORKAROUND
To work around this problem, do not rename the scheduled tasks. Alternatively, delete the existing scheduled tasks, restart the computer, create new scheduled tasks, and then rename the scheduled tasks.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
  Create scheduled tasks. To do this, use a batch file that has entries that are similar to the following: AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot; AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C &quot;c:\winnt\notepad.exe&quot;

rename C:\Winnt\tasks\At1.job rename1.job rename C:\Winnt\tasks\At2.job rename2.job rename C:\Winnt\tasks\At3.job rename3.job rename C:\Winnt\tasks\At4.job rename4.job rename C:\Winnt\tasks\At5.job rename5.job rename C:\Winnt\tasks\At6.job rename6.job rename C:\Winnt\tasks\At7.job rename7.job rename C:\Winnt\tasks\At8.job rename8.job rename C:\Winnt\tasks\At9.job rename9.job rename C:\Winnt\tasks\At10.job rename10.job  Manually start the tasks by using the Scheduled Tasks utility. Remove all tasks from the Scheduled Tasks utility. Run the batch file again to re-create the tasks. Use the Scheduled Tasks utility to manually start the tasks.</li></ol>

For more information about standard terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbwin2ksp4fix kbbug kbfix kbpubtypekc kbhotfixserver kbqfe KB843537

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.