Answered by:

Task Scheduler corrupt tasks

Question

I amended some of the tasks I created in the Task Scheduler, and then had probelms after a power outage. I restored to an earlier time, and all seemed fine.

When I next opened Task Scheduler, I got "The task image is corrupt or has been tampered with." twice for the 2 tasks I'd amended. I don't need these now, as I've replaced them with a single new task, so I just want to get rid of them. The problem is that I don't know where to look in the registry or file system in Vista (I could do it in 95 ;)

Thanks for that - I hadn't realised they'd lost their extensions, so it was simply a case of removing them. There were no entries in
TaskCache - I didn't think of looking in Windows NT either!

I had seen that thread and several similar on other forums, but they all seemed to be related to RSS feeds rather than a simple file error.

Thanks again - all sorted

You have to delete your task from the below two registry, try to search for the task name.

Deleting the task from the C:\Windows\System32\Tasks will just stop the error message, without deleting the task from the registry below will now allow you to create task with the same task name anymore.

MediaCenter for me too! In Windows 7 the message in Task Scheduler was for "RecordingRestart" and "DispatchRecoveryTasks" just so MS knows. I didn't change anything to cause this besides my normal Guide updates and
TV scheduling.

I have spent four days, off and on, trying to find and fix the "task scheduler image corrupted" error on my computer. I finally found your suggestion late last night. Found the folder in tasks this morning, deleted it and no more error.
It was so easy, once you showed me how. Thank you.

Delete the registry keys that are named the same as the ones coming up in the error messages (in your case there should be a key named "{0}") and that should remove all trace of them from the Task Scheduler.

In order to fix this, you have to delete the actual task XML file that contains the task settings, then rerun the Task Scheduler to confirm that the error is gone, then import a non-corrupted version of the task back into the Task Scheduler.

Most of the work you have to do is to locate the task file in question.

The task files are located in C:\Windows\System32\Tasks.

If you try to open the task folder, you might get a UAC prompt asking you for permission to access the folder, this is OK, just click continue to access the folder.

In my case, the corrupt task was "Microsoft-Windows-DiskDiagnosticDataCollector".

This was a Microsoft task, therefore I had to go into the C:\Windows\System32\Tasks\Microsoft\Windows\DiskDiagnostic folder to locate the actual task xml file,

which was named "Microsoft-Windows-DiskDiagnosticDataCollector".

Once you have located the task file, close the task scheduler, back up the corrupted task file to any location of your choice, then delete it, then open the task scheduler to confirm that the error has gone.

What you now need to do is to export the non-corrupted task from another computer or virtual machine, and import it into the task scheduler.

To export the task in question from another computer, follow these steps.

1. Open the Task Scheduler, then drill down into the task in question, then right-click on the task and select "Export...".

2. Save the exported XML file to a location of your choosing, then copy it over to the affected computer.

3. Once you are back on the affected computer, make sure that the task scheduler is closed, then you need to run the task scheduler as an Administrator.

4. To run the task scheduler as an Administrator, click Start>All Programs>Accessories>System Tools, then locate "Task Scheduler", right-click it and select "Run as Administrator".

5. Once the task scheduler is open, drill down to the folder where the task is supposed to be located, right-click on a blank portion of the window, and select "Import Task...".

6. Once you have imported the task, a "Create task" window will open as shown below, just click OK to it.

7. The task should then be successfully imported, you can then close the task scheduler, and the problem should be fully resolved.

When I try to open Task Scheduler, I get 57 error messages as soon as I open it (each stating that a different thing is corrupt or has been tampered with), and anything I do then within task scheduler just leads to another 57 error messages and nothing else.

I just tried displaying all running tasks and I got a "Catastrophic Failure" error message.

I followed the path C;windows\system32\tasks/microsoft/windows\perf track and deleted the Background Config Surveyor folder. I then copied the folder from my son's computer onto a memory stick and and pasted it into the perf track folder.

The steps described in http://support.microsoft.com/kb/2305420 are the best answer. However, they are rather laborious, especially if you are looking at 40 or more corrupt tasks, as seems to be the typical case if you have rolled back
from Windows 10 to Windows 7. You may therefore find my free and open source tool to automate these steps to be useful. You can find it at https://repairtasks.codeplex.com/

Dijji

Architect, WF. This posting is provided "AS IS" with no warranties, and confers no rights.