Windows 8 and 8.1 Forums

DISM error: 0x80240021

  1. #11


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


    Quote Originally Posted by Trine722 View Post
    @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?
    His script is basically the same as in step 4 on the link which he mounts the install.wim to a temp folder then run DISM command.
    Since you don't have the Windows Installation DVD then you have to download the ISO or create the USB fron the link. However, in the ISO or bootable USB does not have the install.wim file but install.esd instead then you need to covert it to install.wim as suggested above.

      My System SpecsSystem Spec

  2. #12


    Posts : 15
    Windows 8.1


    Got it... Just to be clear, would my files be erased or be wiped clean? Also, to add to my knowledge of these stuff, this mounting of install.wim to my computer, is that the same thing as replacing all of the windows components of my computer? or is that the same as re-installing windows?
      My System SpecsSystem Spec

  3. #13


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


    Once you mount the install.wim, you'll see a Windows folder where you mounted to and DISM will get the components to fix the problem. Nothing will be erased from your OS except the corrupted files will be overwritten.
      My System SpecsSystem Spec

  4. #14


    Posts : 2,690
    Windows 3.1 > Windows 10


    Download "export Index" and extract it
    Copy the Install.esd from the windows setup media "Sources" folder into the same folder as export index
    run export index as admin
    select option 1 = export 1st index

    you should now have an install.esd and install.wim in the same folder as exportindex.cmd and restorehealth.cmd
    Now run "restorehealth.cmd" as admin

    I have edited restorehealth to not look for setup media - but to assume install.wim is in same folder a restorehealth.cmd

    It will not change any files on your PC - Restore Health will use the files from the mounted install.wim to repair the files for your current OS
      My System SpecsSystem Spec

  5. #15


    Posts : 15
    Windows 8.1


    @topgundcp -- whenever I'm running the Windows Installation Media Creation Tool, it would say download did not complete successfully, server execution failed. Does the limited connectivity of my internet connection have gotten to do with this issue? I used to troubleshoot my windows problems in action center but it kept saying "connect to the internet" when in fact I'm connected to the internet but it just kept saying limited connectivity (idk why). I tried to search solutions before for this limited connectivity problem but found nothing useful for my computer. so eventually i gave up and ignored the issue since i can access internet normally just not online windows tools. but right now, i need to fix this (if this is the problem) to be able to continue this process. ugh why does my laptop have so much issues any suggestions on how to fix this?

    @KYHI -- where do I find this "windows setup media Sources folder"? If this is from the installation disk, i dont have one hehe so i need to dl it online but something's preventing me from dl-ing it (refer to my reply to @topgundcp) huhu

    This is so frustrating, tbh
      My System SpecsSystem Spec

  6. #16


    Posts : 15
    Windows 8.1


    @topgundcp & @KYHI -- so I managed to dl the iso file using a different computer and made a bootable usb for windows 8.1 installation media. However, when I plugged in the usb to my laptop (which is win 8.1), it doesn't seem to recognize the usb. I tried plugging the usb to the same computer (which is win 7) where I downloaded the iso file, and it recognized the usb quickly and seemed to work perfectly fine. What's wrong with my laptop? Why can't it recognize the bootable usb?
      My System SpecsSystem Spec

  7. #17


    Posts : 15
    Windows 8.1


    I found a way to work things out and voila it's now fixed!!! Thank you so much you two @topgundcp & @KYHI.
      My System SpecsSystem Spec

  8. #18


    Posts : 2
    WIN 7 64bit


    Thanks everyone who contributed to this thread, I also have 80240021 error.
    I am a little confused exactly how to rectify the issue tho.
    Trine722 - can you please explain in point form how you went about fixing this issue? Please?
    Where do you get the iso file?
    How did you get the usb port to work?
    etc.

    Thanks
      My System SpecsSystem Spec

  9. #19


    Posts : 15
    Windows 8.1


    1) Download the installation media in this link Create installation media for Windows 8.1 - Windows Help , this will let you dl the iso file. It will ask you if you want to put the win media directly in the usb or if you want to dl it as an iso file first. In my case, i dl-ed the iso file first since I don't have a usb that time. If you choose to place it directly in a usb, i dont think you have to do #2, so proceed to #3.
    **2) Use rufus (which can be downloaded in here Rufus - Create bootable USB drives the easy way ) to create a bootable usb where you will put the iso file. Follow these steps in here if you don't know how to https://www.winhelp.info/windows/cre...n-a-usb-stick/
    3) If you'll download the file using the same computer that has dism issue, i don't think you'll encounter the same problem as mine (which was my laptop not recognizing the usb). When you finally have the bootable usb, keep that plugged in, and explore the files in it. Then follow the steps below (reposting this from @KYHI):

    Download " Export_Index.zip " and extract it
    Copy the Install.esd from the windows setup media "Sources" folder (from the bootable usb) into the same folder as export index
    run export index as admin
    select option 1 = export 1st index

    you should now have an install.esd and install.wim in the same folder as exportindex.cmd and restorehealth.cmd
    Now run "restorehealth.cmd" as admin

    --That should fix the problem It worked for me
      My System SpecsSystem Spec

  10. #20


    Posts : 2,690
    Windows 3.1 > Windows 10


    Once you have the ISO file created - just double click it to mount it - then you can copy the install.esd

    Basiclly you can skip step two

    In order to create Bootable media, double click the ISO to mount it, then copy all it's contents to a formatted Fat32 USB
      My System SpecsSystem Spec

Page 2 of 3 FirstFirst 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