"Resolve" The task image is corrupted or tampered with. (Exception from hresult:0x80041321)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.