Share via

Error: 0x80240021

Anonymous
2017-07-10T20:21:44+00:00

Hello I have problem to update windows 8.1

When I try to restore health I get Error: 0x80240021. I have tried also StartComponentCleanup, but didn't help.

Here results of what I have tried:

C:\Windows\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.

Verification 100% complete.

Windows Resource Protection found corrupt files but was unable to fix some

of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For

example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not

supported in offline servicing scenarios.

C:\Windows\system32>Dism /online /cleanup-image /scanhealth

Deployment Image Servicing and Management tool

Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

The component store is repairable.

The operation completed successfully.

C:\Windows\system32>Dism /online /cleanup-image /restorehealth

Deployment Image Servicing and Management tool

Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 0x80240021

DISM failed. No operation was performed.

For more information, review the log file.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\Windows\system32>Dism /Online /Cleanup-Image /StartComponentCleanup

Deployment Image Servicing and Management tool

Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

The operation completed successfully.

C:\Windows\system32>Dism /online /cleanup-image /restorehealth

Deployment Image Servicing and Management tool

Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 0x80240021

DISM failed. No operation was performed.

For more information, review the log file.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

Here a part of the log:

 DISM   DISM Package Manager: PID=4036 TID=1644  Error in operation: (null) (CBS HRESULT=0x80240021) - CCbsConUIHandler::Error

2017-06-05 09:06:59, Error                 DISM   DISM Package Manager: PID=4036 TID=3284 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80240021)

2017-06-05 09:06:59, Error                 DISM   DISM Package Manager: PID=4036 TID=3284 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x80240021)

2017-06-05 09:06:59, Error                 DISM   DISM Package Manager: PID=4036 TID=3284 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x80240021)

2017-06-05 09:06:59, Error                 DISM   DISM Package Manager: PID=4036 TID=3284 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80240021)

2017-06-05 09:06:59, Info                  DISM   DISM Package Manager: PID=4036 TID=3284 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine

2017-06-05 09:06:59, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80240021

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2017-07-20T18:31:57+00:00

    Assuming Win8.1 64-bit...

    Please answer each of the following [admittedly tedious] diagnostic questions in a correspondingly-numbered list in your very next reply, preferably without quoting this post:

    1a. When (approx. date) did you purchase the computer?

    1b. Did the computer come with Win8 (or Win8.1) preinstalled, did you do a clean install of Win8 (or Win8.1), or did you upgrade a (e.g., Win7) computer to Win8?

    1c. Who manufactured the computer (e.g., Dell; HP; Lenovo; Acer)? 

    1d. Have you ever done a Refresh? ...a Reset?

    1e. Has Windows 10 ever been installed?

    2a. Assuming a third-party anti-virus application/security suite is NOT installed => What Definitions versions are currently listed in Defender's Update tab?

    2b. What Definitions last updated date?

    2c. What happens when you click on the UPDATE button on that tab?

    ![](https://learn-attachment.microsoft.com/api/attachments/cc62c043-954a-4207-b09d-17d320374f7c?platform=QnA)

    1. What third-party anti-malware applications (i.e., not Windows Defender!) are installed, if any?  What third-party firewall, if any?
    2. Has a(nother) Norton application or a McAfee application EVER been installed on the computer since you bought it?
    3. Have you ever run the Norton Removal Tool and/or the McAfee Consumer Products Removal Tool?
    4. What Update Version & KB number are displayed in the second line of text in IE11's Help | About [Alt+H+A] tab; e.g., Update Version: 11.0.54 (KB1231231) ?
    5. Is Adobe Flash Player v26.0.0.137 installed? TEST HERE USING INTERNET EXPLORER ONLY! => http://www.adobe.com/software/flash/about/ 
    6. Is Firefox version 54.0.1 (or higher) and/or Google Chrome version 59.0.3071.115 (or higher) or any other alternate browser installed?
    7. Are you in the habit of using "Registry cleaners" (e.g., Registry Mechanic; System Mechanic; RegCure; RegClean Pro; Advanced SystemCare; Total System Care; Glary Utilities; Registry Booster; McAfee QuickClean; AVG Quick CleanAVG PC TuneUp; Norton Registry Cleaner; Norton PC Tuneup; PCTools Optimiser; Bitdefender OneClick Optimizer; SpeedUpMyPC; FixMyPC; PC Doctor; TuneUp Utilities; WinMaximizer; WinSweeper; Comodo System Cleaner; Advanced System Optimizer; CCleaner Registry Cleaner component)?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-07-20T06:49:19+00:00

    It has been already like half a year ago.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-07-12T21:37:46+00:00

    When (approx. date) did Windows Update stop working?

    Help us help you:

        • What information to post in the Windows Update forum

           http://answers.microsoft.com/thread/1467f44b-ee27-4f7d-98d7-f1c4b35b3395

    Also see...

        • Suggestions for asking a question in help forums

           http://support.microsoft.com/kb/555375

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-07-11T05:02:21+00:00

    the update doesnt work already for some time, I just started solving it recently.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2017-07-10T21:46:41+00:00

    Hello I have problem to update windows 8.1

    When I try to restore health I get Error: 0x80240021...

    Are these sudden, new problems or...?

    Was this answer helpful?

    0 comments No comments