Upgrade your system to Windows 10 and experience Windows 10. It doesn't feel good. Back to Windows 7, I found that my original task schedule was not executed on time, so I opened the task plan and popped the following dialog box "The task image is corrupted or tampered with." (Exception from hresult:0x80041321) ".
Workaround:
1. Run the command prompt as an administrator and execute the command
CHCP 437
schtasks/query/v | find/i "Error:task cannot be loaded:"
2. The command will return the corrupted Task Scheduler name.
3. Please record the name of the damaged scheduled task. English seems to be the cannot be loaded, remember not clear.
The above method is from: http://m.blog.csdn.net/blog/nxeexn/7058470
Of course we don't use the method in this page. However, please complete the above operation first to find out the wrong task plan name. And then we'll find a one to fix it.
As shown above, this task, such as Sessionagent, is corrupted
① We need to C:\Windows\System32\Tasks this folder to search, the folder where it is recorded below.
The location that corresponds to the task plan is: Microsoft\windows\sideshow.
② We cut this sessionagent file to another place, right! is cut, not copied . such as cutting to the desktop.
③ sessionagent This file to Sessionagent.xml, change the file to an XML file.
④ to the Mission plan. Position: Microsoft\windows\sideshow
Click on the Import task to import the sessionagent.xml of the desktop just now. If the import pop-up error dialog box, usually the version number is incorrect, we directly open the file, the version number inside to modify it.
For example, change 1.5 to 1.3. Remember to save the file (ctrl+s)! Then import it again and then successfully import the task into it.
This is then required for each damaged task. Accidentally importing the wrong location is actually possible. The location of the folder within the task plan is just for the convenience of management.
The method is so simple that all damaged task one by one is restored. Then it will not pop the first picture that mistake.
"Resolve" The task image is corrupted or tampered with. (Exception from hresult:0x80041321)