Processed through Paypal
No account required.
|File - Download Repair Tasks v3.3|
Always scroll to the bottom of the page to download files on OlderGeeks.com.
We don't believe in fake/misleading download buttons and tricks.
Tweet Repair Tasks v3.3
This project is a utility that makes repairs to the Windows Task schedule.
In particular, it fixes problems where opening the Task Scheduler, or trying to configure Windows Backup, results in the message "The task image is corrupt or has been tampered with" (0x80041321).
Searching the web reveals that this message has been seen from time to time, and the (rather laborious) set of steps that can be taken to correct it are fairly well-documented.
However, it turns out that reverting to Windows 7 from Windows 10 generates this problem in spades. It can leave more than 40 scheduled tasks in a corrupt state. This is because many task registry keys and the task definitions to which they refer are updated by a Windows 10 upgrade, but only the registry keys are restored on reversion, so Task Scheduler finds that, for these tasks, the task registry keys and task definitions are now inconsistent.
The general recommendation in response to this reversion problem seems to be to restore the system from backups. However, I'm never sure about overwriting chunks of my system from backups, and would rather go forwards. So, since the fix is well-known, and the main problem is just repeated execution, I decided to write a utility to automate the set of steps required.
And now, I'm sharing my work in case it is of use to fellow sufferers, pending Microsoft getting their act together and fixing reversion.
Open source is particularly appropriate for this type of project, as the code necessarily delves into system settings, making complete transparency as to what it does crucial. You are encouraged to download the source, which is actually not huge, and understand what it does. However, I also provide a download of the executable, and a description of how to use the program on the Documentation tab.
Thank you to all the kind reviewers of the evolving versions, and the folks that have given me such great feedback and so helped make the program better. But additional input on whether it does (or doesn't) work for you would be most welcome e.g. as a Discussion, or a review. I will try and make any needed improvements to the program in response.
Firstly, we will need to understand a little about how tasks are described in Windows.
Windows keeps most of the detail about a task in an XML file held under \Windows\System32\Tasks. Task files are held in a directory tree, and are referred to using the relative path, for example “Microsoft\Windows\RAC\RacTask”.
A correctly configured task also has three to five separate registry entries, one of which contains a hash of the XML file. The message "The task image is corrupt or has been tampered with" indicates that the hash in the registry does not match the current state of the XML file.
The solution to the problem is to delete the registry entries and XML file from Windows, and reinstall the task by passing a copy of the XML file to the system utility ‘schtasks’.
The program supplied by this project, RepairTasks, looks like this:
To start it, first copy the two files from RepairTasks.zip to a folder of your choice and then run RepairTasks.exe. The copying step is recommended because RepairTasks must run with administrative privileges, and some users have found that it will not do so if run from within the zip file.
Scan causes RepairTasks to walk the directory tree under \Windows\System 32\Tasks. For each task, RepairTasks uses schtasks in query mode to see whether the task is correctly set up. It looks in particular for the aforementioned, "The task image is corrupt or has been tampered with", but every task for which any error is reported is added to a list of tasks to be repaired.
Repair causes RepairTasks to go through the list of tasks to be repaired, repairing each using the steps described above, i.e. the registry entries and the task file are deleted, and RepairTasks attempts to reinstall the task. If repair fails, an attempt is made to restore the task file and registry entries to their original state. If this fails, the task will appear as 'not installed' in the next Scan, and another Repair attempt can be made.
Unplug Task unplugs the task selected in the results window from Task Scheduler. It does this by removing the registry entries, so that Task Scheduler is no longer aware of the task. However, it leaves the task file intact under Windows\System32\Tasks, so that it will continue to appear in a Scan, and can be repaired in the future. Once a task has been unplugged, it can be permanently removed from the system by deleting the task file under Windows\System32\Tasks.
Backup Tasks prompts for a directory in which to make a backup copy of all the task files under \Windows\System 32\Tasks. Each backup copy is date and time stamped, so that multiple backups may be created.
Save Results prompts for a log file in which to save the results of the last Scan or Repair
I recommend that you use RepairTasks as follows:
Scan for errors. If there are none, you are done.
Before attempting Repair, use Backup Tasks to save the current state of the task files.
Repair with the 'Recycle existing tasks' radio button checked. RepairTasks will reinstall the existing task files, preserving any settings that they contain. Often, this will fix all outstanding problems, and you're done.
Sometimes, task file installations will fail. When Windows 10 is reverted to Windows 7, it restores the Windows 7 registry entries, but leaves behind Windows 10 task files. In most cases, these can be reinstalled, but sometimes their content is not acceptable to Windows 7. A typical failure is “'ERROR: The task XML contains a value which is incorrectly formatted or out of range.(2,8):version:1.5". To get out of this, it is necessary to provide a valid Windows 7 task XML file. This can come from the ‘Windows7 Tasks.zip’ download that I provide, containing the Windows 7 task files from a clean installation, or a backup, if you have one; or another Windows 7 system. There are also tasks added in more recent versions of Windows 10 that run code that does not exist at all in Windows 7, and therefore can be left unrepaired and unplugged, which is fine as they are visible only to RepairTasks, or removed from the system by deleting the task files from System32\Tasks (but be careful to get the right ones!).
To use standard Windows 7 task files, download the Windows7 Tasks.zip file, then Repair with the ‘Take tasks from backup’ radio button checked. In the dialog that opens, select the Windows7 Tasks.zip file in its downloaded location. For each task to be repaired, RepairTasks looks inside the zip file for the corresponding task file from a clean Windows 7 installation. If there is one, it uses it to repair the task; otherwise the task is left unchanged. It is not necessary to unzip the downloaded file. If you do, you will need to replace all underscores in file and path names with blanks. If you use the zip file without unzipping it, this is taken care of for you.
To use an alternative source of task files, again Repair with the ‘Take tasks from backup' radio button checked, but instead select a folder containing the task XML files. The folder subtree will be searched for task files with the same names as the tasks to be repaired and that are either in the root folder of the subtree, or in a folder with the same name as the folder containing the task to be repaired in Windows\System32\Tasks. If you are taking the files from a backup or another Windows 7 system, a good approach is to first set up a temporary folder to use as the source. Copy the contents of the Windows\System32\Tasks directory to your temporary folder. Alternatively, the backup folder you created in step 1 can also be used as the source of the tasks.
In general, use Repair with 'Recycle existing tasks' when you can, because it preserves existing settings.
|446||2,450||Dijji <img src="http://www.oldergeeks.com/downloads/gallery/thumbs/RepairTasks1_th.png"border="0">||Jun 20, 2016 - 11:22||3.3||23KB||ZIP||, out of 1 Votes.|
|Repair Tasks v3.3|
|56Kbit Modem: 4s · 256Kbit: 1s · 1Mbit: 1s · 5Mbit: 1s|
→→ Download Now ←← - Rate File - More From This Developer - - Images