Solved DISM error: 0x80240021

Trine722

New Member
Messages
15
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!

View attachment dism.log
 
Last edited:

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
Please please help and don't ignore this message, dear people w great computer skills :'(
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
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 Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
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 Computer

System One

  • OS
    PC-DOS v1.0
    Computer type
    PC/Desktop
    System Manufacturer/Model
    IBM
    CPU
    Intel 8088, 4.77MHz
    Memory
    16K, 640K max
    Graphics Card(s)
    What's that?
    Sound Card
    Not quite
    Screen Resolution
    80 X 24 text
    Hard Drives
    dual 160KB 5.25-inch disk drives
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:

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender

My Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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:

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
@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 Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
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 Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
@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 Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
@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 Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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 Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
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 Computer

System One

  • OS
    8.1x64PWMC Ubuntu14.04x64 MintMate17x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home Brewed
    CPU
    I7 4970K OC'ed @4.7 GHz
    Motherboard
    MSI-Z97
    Memory
    16 GB G-Skill Trident X @2400MHZ
    Graphics Card(s)
    NVIDIA GeForce GTS 450
    Sound Card
    X-Fi Titanium Fatal1ty Professional Series
    Monitor(s) Displays
    Dual HP-W2408
    Screen Resolution
    1920X1200
    Hard Drives
    256 GB M2 sm951, (2) 500GB 850EVO, 5TB, 2 TB Seagate
    PSU
    Antec 850W
    Case
    Antec 1200
    Cooling
    Danger Den H20
    Keyboard
    Logitech
    Mouse
    Logitech Performance Mouse MX
    Internet Speed
    35/12mbps
    Browser
    Firefox
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 Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
@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
:cry:
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
@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 Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
I found a way to work things out and voila it's now fixed!!! Thank you so much you two @topgundcp & @KYHI. :)
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
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 Computer

System One

  • OS
    WIN 7 64bit
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/create-bootable-windows-installation-media-on-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 " View attachment 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 Computer

System One

  • OS
    Windows 8.1
    Computer type
    Laptop
    System Manufacturer/Model
    ACER Aspire E1-472G
    Browser
    Chrome
    Antivirus
    Windows Defender
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 Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
Back
Top