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 translations Article translations
Article ID: 843537
Expand all | Collapse all

On This Page

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 available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

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
Collapse this tableExpand this table
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

Properties

Article ID: 843537 - Last Review: October 9, 2011 - Revision: 2.0
Keywords: 
kbautohotfix kbwin2ksp4fix kbbug kbfix kbhotfixserver kbqfe KB843537

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com