Microsoft KB Archive/884573

= “0x80070005: Access is denied&quot; error message when you create a scheduled task in Windows XP Service Pack 2 =

Article ID: 884573

Article Last Modified on 11/23/2005

-

APPLIES TO


 * Microsoft Windows XP Professional SP2

-





SYMPTOMS
When you create a new scheduled task by using the Task Scheduler on your Microsoft Windows XP-based computer, you may receive the following error message after you click Finish:

The new task has been created, but may not run because the account information could not be set. The specific error is: 0x80070005: Access is denied. Try using the Task page Browse button to locate application.

Additionally, the scheduled task does not run as expected in this scenario. Instead, the following entry is logged to the Scheduled Task log file (Schedlgu.txt):

The attempt to retrieve account information for the specified task failed; therefore, the task did not run. Either an error occurred, or no account information existed for the task. 0x8004130f: No account information could be found in the Task Scheduler security database for the task indicated.



CAUSE
This problem occurs because of a regression that was introduced in both of the following updates:  Windows XP Service Pack 2 (SP2) and Windows XP Tablet PC Edition 2005. The update that is described in the following Microsoft Knowledge Base article:

841873 MS04-022: A vulnerability in Task Scheduler could allow code execution





RESOLUTION
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 XP 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. 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.   Date         Time   Version            Size    File name ---  27-Aug-2004  22:17  5.1.2600.1580     263,680  Mstask.dll 29-Jul-2004 23:35  5.1.2600.1580      10,752  Mstinit.exe 27-Aug-2004 22:17  5.1.2600.1587     172,544  Schedsvc.dll 30-Jul-2004 21:29  5.1.2600.1580     594,432  Xpsp2res.dll 27-Aug-2004 22:08  5.1.2600.2508     190,976  Schedsvc.dll



WORKAROUND
To work around this problem, add the &quot;Access this computer from the network&quot; permission to the user account that will run the scheduled task. To do this for the local computer policy, follow these steps:  Click Start, click Run, type Gpedit.msc, and then click OK. Expand the following items in the Local Computer Policy list:

Computer Configuration

Windows Settings

Security Settings

Local Policies

</li> Click User Rights Assignment.</li> Double-click Access this computer from the network, and then click Add User or Group.</li> Add the new user name or the group name in the Enter the object names to select area.</li> Click Check Names to verify the entries.</li> Click OK two times.</li></ol>

<div class="status_section">

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

<div class="moreinformation_section">

MORE INFORMATION
This problem may also occur when you create a new task and you do not type a password for that task. In this case, you must create a password for your user account if it does not have one, and use that password for any new task you create.

For more information, 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: kbqfe kbwinxpsp2fix kbwinxppresp2fix kbfix kbbug KB884573

-

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

© Microsoft Corporation. All rights reserved.