Most Windows users experience error such as "The Task image is corrupt or has been tampered" with error code 0x80041321.
This error has to do with a corrupt scheduled backup task wherein each time the task service plans to execute a task, it validates a few things. Also if it finds any issue with the integrity or corruption in the registry, it will mark those tasks as corrupt and throws the error 0x80041321.
Here at Outsource Path, as part of our Technical Support Services, we regularly help our Customers to fix Windows related errors.
In this context, we shall look into the steps to solve this Windows error.
What triggers Windows Error "The task image is corrupt or has been tampered with (0x80041321)"?
This error is generally triggered when there is corruption in a scheduled backup task. Also it can happened when there are issues with the integrity or corruption in the registry.
How to fix Windows Error "The task image is corrupt or has been tampered with (0x80041321)"?
To resolve this error, you can try using the Registry Editor to edit and fix the corrupted tasks or you could also delete the schedule keys or the WindowsBackup file, as well as try deleting the task from the Task Scheduler or refresh the User_Feed_Synchronization.
But before you of these potential fixes, make sure that you check every option and verify if it’s not associated or trying to run a file which it should not. In addition, make sure that you create a System Restore point as well so that you can undo any changes you will be making if anything goes wrong.
Below are steps that you can take;
1. Try to use the Registry Editor to edit and fix corrupted tasks
The first thing you can do to fix the problem is to edit those tasks via Registry Editor, as well as fix the corrupted ones in System32. Before you proceed, keep in mind that since you are dealing with the Backup triggered by the Task Scheduler, you can find the entries for the tasks on different locations.
You can find the Task Scheduler at "Task Scheduler Library > Microsoft > Windows > Windows Backup", whereas, you can find it in this path in the "Registry Editor, HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Schedule WindowsBackup AutomaticBackup" .
On the other hand, you can find the Windows System folder at "C:WindowsSystem32TasksMicrosoftWindowsWindowsBackup". You need to ensure that the name of the task name is the same as everywhere and take note of the name.
Once you have these covered, follow the steps below.
i. Tap the Win + R keys to open Run and type “regedit” in the field and hit Enter to open the Registry Editor.
ii. Next, navigate to this key: ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheTreeMicrosoftWindowsWindowsBackup
iii. From there, take note of the GUID value in the ID entry of the task under the AutomaticBackup and Windows Backup Monitor folder.
iv. After that, you have to remove the task registry entries related with the ID from these locations.
a. HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCachePlain
b. HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheLogon
c. HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheBoot
v. Once done, you have to create a temporary copy of the corrupted task file by going to this location: "C:WindowsSystem32TasksMicrosoftWindowsWindowsBackup".
vi. From there, look for the AutomaticBackup and Windows Backup Monitor tasks and copy them to a location where you can keep it safe.
vii. Next, you have to fix the corrupted task by deleting it from this location: C:WindowsSystem32TasksMicrosoftWindowsWindowsBackup
viii. After that, you have to recreate the task by going to "Task Scheduler > Microsoft > Windows> Windows Backup".
ix. Now click on the Action menu and on Import task and navigate to the backup files and import them.
x. Once you’ve created the tasks, run them manually and see if the error is now fixed.
2. Try to delete the Schedule keys in the Registry
i. Launch the Registry Editor and go to this key:
HKLMSOFTWAREMicrosoftWindows NTCurrent VersionSchedule
ii. From there, delete all of its sub-keys.
iii. Once done, exit the Registry Editor and check if the Backup Tasks is now working.
3. Try to remove the WindowsBackup file
The next thing you can do to fix the problem is to remove the WindowsBackup file if the first two options didn’t work. It is possible that the problem have something to do with corrupted Task files. The task files are XML files that include parameters, programs to use and many more. If any of these files ends up getting corrupted, the task scheduler will have trouble in running it and will throw the “The Task image is corrupt or has been tampered with” error.
i. To delete it, go to C:WindowsSystem32TasksMicrosoftWindowsWindowsBackup.
ii. From this location, get rid of all the files. You could also these files via Command Prompt using the DEL command.
iii. Once done, go to the Backup and Restore in the Control Panel and set up the Windows Backup again.
4. Try to delete the task from the Task Scheduler
If you don’t want to delete the files from Windows Explorer, you can delete them instead via Task Scheduler.
i. Open the Task Scheduler and go to Task Schedule LibraryMicrosoftWindowsWindowsBackup.
ii. From there, delete both of the tasks and set up Windows Backup again.
iii. Once done, go to the Task Manager and run the AutomaticBackup task again and see if it works.
5. Try to restart the Task Scheduler service
As mentioned, it is possible that the Task Scheduler service could be disabled. You could have disabled it when trying to enhance your computer’s performance and whatnot. Thus, you need to verify if it’s running or not and then restart it.
i. First, you need to tap the Win + R keys on your keyboard to open the Run dialog box.
ii. Next, type “services.msc” in the field and click OK or tap Enter to open the Windows Services Manager.
iii. You will see a list of Services and from there, look for the Task Scheduler service and double click on it.
iv. After that, go to the General tab and click on the Startup Type options and then select “Automatically” from the given list.
v. Click on the “RUN” option and select the “Restart the Service” option.
vi. And click on the “After Second Failure” option and then select the “Restart Service” option again.
vii. Now click on the “After Subsequent Failures” tab and select the “Restart the Service” option.
viii. Finally, click on the Apply and OK buttons and then run the Task Scheduler and see if the issue is now fixed.
6. Try refreshing the User_Feed_Synchronization
According to security experts, enabling and disabling the User Feed sync also known as the User_Feed_Synchronization task can help resolve the problem.
i. Tap the Win + X keys and select the PowerShell (admin) option from the menu.
ii. Next, type the “msfeedssync disable” command and tap Enter.
iii. Repeat the same process but this time run the “msfeedssync enable” command.