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 (843537)



The information in this article applies to:

  • Microsoft Windows 2000 Advanced Server SP4
  • Microsoft Windows 2000 Server SP4
  • Microsoft Windows 2000 Professional SP4

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:
"Daily File Maint.job" (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.

RESOLUTION

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: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
File nameFile versionFile sizeDateTimePlatform
Mstask.dll4.71.2195.6942218,89618-Jun-200406:59x86
Mstask.exe4.71.2195.6942122,12818-Jun-200404:58x86

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 "Applies to" section.

MORE INFORMATION

Steps to reproduce the problem

  1. 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 "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    AT 12:15 /interactive /every:M,T,W,Th,F,Sa,Su CMD.EXE /C "c:\winnt\notepad.exe"
    
    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
    
  2. Manually start the tasks by using the Scheduled Tasks utility.
  3. Remove all tasks from the Scheduled Tasks utility.
  4. Run the batch file again to re-create the tasks.
  5. Use the Scheduled Tasks utility to manually start the tasks.
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


Modification Type:MinorLast Reviewed:7/24/2006
Keywords:kbWin2kSP4fix kbBug kbfix kbHotfixServer kbQFE kbpubtypekc KB843537 kbAudEndUser kbAudITPRO