Error message when you run an old scheduled task or a newly created scheduled task on a domain controller: "0x8007000d: The data is invalid"
This article provides the resolution for the error message "0x8007000d: The data is invalid" when you run an old scheduled task or newly created scheduled task on a domain controller.
Applies to: Windows Server 2012 R2
Original KB number: 958837
Symptoms
You cannot run an old scheduled task on a domain controller after you install Windows Server 2003 Service Pack 2 (SP2) on the domain controller. Additionally, you cannot run a newly created scheduled task that you create by using the Scheduled Task Wizard. When you try to run an old scheduled task or a newly created scheduled task, you receive the following error message:
General page initialization failed.
The specific error is:
0x8007000d: The data is invalid.
An error has occurred attempting to retrieve task account information. You may continue editing the task object, but will be unable to change task account information.
Note
However, you can run a scheduled task that you create by using Administrative Tools.
Resolution
To resolve this issue, follow these steps:
Stop the Task Scheduler service on the domain controller. To do this, follow these steps:
- Click Start, click Run, type services.msc, and then press ENTER.
- In the list of services, double-click Task Scheduler.
- Click Stop, and then click OK.
- On the File menu, click Exit.
Change the attribute of the Tasks folder to make the folder a typical folder. To do this, follow these steps:
Click Start, click Run, type cmd, and then press ENTER.
At the command prompt, type
cd %windir%
, and then press ENTER.Note
%windir% specifies the path where Windows is installed. Typically, C:\Windows is the path where Windows is installed.
Type
attrib -s tasks
, and then press ENTER.
Switch to the Tasks folder. To do this, type
cd tasks
, and then press ENTER.Back up the Sa.dat file. To do this, type
copy sa.dat <backup_path>
, and then press ENTER.Note
The backup_path placeholder specifies the path of the location where you want to copy the Sa.dat file.
Delete the Sa.dat file. To do this, type
del sa.dat
, and then press ENTER.Change the attribute of the Tasks folder to revert the folder back to a system folder. To do this, follow these steps:
- At the command prompt, type
cd %windir%
, and then press ENTER. - Type
attrib +s tasks
, and then press ENTER.
- At the command prompt, type
Type
exit
, and then press ENTER to close the Command Prompt window.Start the Task Scheduler service on the domain controller. To do this, follow these steps:
- Click Start, click Run, type services.msc, and then press ENTER.
- In the list of services, double-click Task Scheduler.
- Click Start, and then click OK.
- On the File menu, click Exit.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for