Windows 8 and 8.1 Forums

DISM error: 0x80240021

  1. #1


    Posts : 15
    Windows 8.1

    DISM error: 0x80240021


    Please help!

    I've been trying to run dism for a couple of days now and all I'm getting is this:

    "DISM failed. No operation was performed.
    Error: 0x80240021"

    Already tried the Start Component Cleanup then the Restore health but to no avail. I already ran chkdsk but still failed to fix dism. I badly need help cause my windows update wont download any files, and I read running sfc would help (sfc failed) so I turned to dism which also failed. Hoping that if I fix dism, sfc would also run smoothly as well as windows update.

    When I tried to view the DISM log file, it seems that the problem is with the PEProvider.dll it says failed to load etc...

    I'll attach below my DISM log file.

    Hope you could help me! Thanks!

    dism.log
    Last edited by Trine722; 05 May 2015 at 06:00.

      My System SpecsSystem Spec

  2. #2


    Posts : 15
    Windows 8.1


    Please please help and don't ignore this message, dear people w great computer skills :'(
      My System SpecsSystem Spec

  3. #3


    Posts : 2,690
    Windows 3.1 > Windows 10


    You are running the DISM commands from within a windows environment ? Right ?
    try these two commands >
    Dism /Online /Cleanup-Image /AnalyzeComponentStore
    Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
      My System SpecsSystem Spec

  4. #4


    Dism may not be able to repair files if the filesystem itself is damaged. Make sure by running...

    chkdsk /r

    - then retry both restorehealth and scannow commands.


    Edit: Just realised you already ran chkdsk... my bad - what did it say btw?





      My System SpecsSystem Spec

  5. #5


    Posts : 15
    Windows 8.1


    Thank you both for replying.

    @KYHI -- the Analyze Component Store was successful. However, the StartComponentCleanup /ResetBase stopped at 39.9% . It showed,
    "Error: 1726
    The remote procedure call failed.
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log"
    So I checked the log and again, it has something to do with the PE Provider.dll

    @Superfly -- well honestly, i left my laptop while it was running chkdsk because I knew it would take hours. When I came back, the screen was already showing the desktop. I assumed chkdsk was done but I wasn't sure if it had found any errors as it didn't show me any report or analysis whether chkdsk was successful or not.

    ---UPDATE---

    I came across a microsoft page when I tried to search for error 1726 problem. I followed method 1 posted in here Dism.exe /online /Cleanup-Image /StartComponentCleanup - Microsoft Community and then tried to run ResetBase again and voila the operation completed successfully. Tried performing the RestoreHealth next but then it failed and gave me the same error 0x80240021 all over again
    Last edited by Trine722; 14 May 2015 at 04:13.
      My System SpecsSystem Spec

  6. #6


    San Jose - California
    Posts : 2,847
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64


    You might have to do it this way:
    'dism' error message
      My System SpecsSystem Spec

  7. #7


    Posts : 2,690
    Windows 3.1 > Windows 10


    Here is a script that will scan the Online Windows Image and RestoreHealth, by mounting an install.wim..
    The script will be looking for the install.wim from the MS Windows Setup DVD..

    If the Setup Media contains an install.esd (as used and created by the media creation tool) the restorehealth will fail..
    You can not mount an install.esd > but you can convert an install.esd to an install.wim using another program I have..

    Rename RestoreHealth.cmd.txt to restorehealth.cmd and then right click on file > run as administrator
    Last edited by KYHI; 14 May 2015 at 08:21.
      My System SpecsSystem Spec

  8. #8


    Posts : 15
    Windows 8.1


    @topgundcp -- is that the same method KYHI posted above this message?

    @KYHI -- how will I know the drive letter to source install.wim I want to use? I tried to put my PC's drive (C) but it said something like the file can't be found in the path specified and gave me an error: 2. am I doing it wrong?
      My System SpecsSystem Spec

  9. #9


    San Jose - California
    Posts : 2,847
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64


    Unfortunately, The ISO downloaded from the link does not contain install.wim but install.esd instead. So you need to do an extra step as KYHI mentioned using: WinReducer Wim Converter - WinReducer.net
    then you can put the install.wim anywhere but make sure that the path to the file is correct.
      My System SpecsSystem Spec

  10. #10


    Posts : 15
    Windows 8.1


    @topgundcp -- so basically I need to make a bootable usb if I don't have MS Windows Setup DVD? and then run the restorehealth.cmd posted by KYHI?
      My System SpecsSystem Spec

Page 1 of 3 123 LastLast
DISM error: 0x80240021
Related Threads
Hi, I have a desktop computer running Windows 8.1 Pro 64-bit. My computer suffered from an improper shutdown during a power outage. I am getting multiple error messages on logging in, and the sfc /scannow command shows several corrupt files, including msvcr80.dll and multiple others,...
Error Code 0x800f0906 When Trying to Use Dism in Performance & Maintenance
Hello. I am having an issue when trying to run the "Dism /online /cleanup-image /restorehealth" command in an elevated command prompt in Windows 8.1. Whenever I attempt to do so, it fails and returns: Error: 0x800f0906 The source files could not be downloaded. I have ran the command several...
DISM "Error: 0x80240021" in General Support
I was following the instructions provided to other users with the same error for this site. I have followed this posting specifically https://www.eightforums.com/performance-maintenance/41130-dism-online-restore-health-function-gets-error-0x80240021.html and have ran the DISM command followed by the...
DISM and SFC error, 0x800f0906 in Performance & Maintenance
Heya all! Recently I got problems when running SFC or DISM to repair my system. As far as I know it concerns the shortcuts in the folder Administrative Tools, there I changed under Properties the Run option to Maximised Windows and since then SFC and DISM have shown this error that the services...
Hi, I've been having many problems with my comp, and I think many of them can be attributed to my HDD. Not sure whether or not it's corruption or a failing disk or what have you, but I tried to do the sfc /scannow command and the Dism /Online /Cleanup-Image /RestoreHealth command and neither...
dism error 87 in General Support
every time I get this "DISM.exe / Image: F: \ 7work \ WIM / Add-Package / Package Path: F: \ 7work \ LP \ lp.cab" try to run I get an error situation. error 87? What should I do now. I have so many looked on google but I'm desperate. thanks (google translate)
Solved SFC and DISM Fail. Error 0x800f081f in Performance & Maintenance
Hey Everyone, I have a similar issue to others on this forum, but posted solutions do not work. Both SFC and DISM fail to complete. I'm stuck...need a new set of eyes here; solution cannot include an OS refresh or reset. Here's the detail: Windows Update works. Everything below is done in...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook