Windows 8 and 8.1 Forums


dism online cleanup-image restorehealth stuck at 40%

  1. #1


    Posts : 4
    Windows 8.1

    dism online cleanup-image restorehealth stuck at 40%


    Hi guys! It's my first time in a forum like this so please bear with me.
    I have a laptop with Windows 8.1 x64. It has had some weird issues recently (it shuts down if over-exited by anything more intense than Mozilla and Word) but I was able to work around them until a BSOD happened a few days ago. Ever since, it would hang at random times and the only way out is by forcing a shut-down with the power button. I was unable to perform a system restore (it starts, theoretically, according to the control panel, but NOTHING happens). I checked extensively for viruses, using Norton, SuperAntiSpyware, MalwareBytes and Microsoft Support Emergency Report Tool. Norton did find several viruses and took care of them, but my coputer still hangs randomly.
    I performed SFC /scannow but it was unable to fix everything, so I tried these ones next:
    Dism /Online /Cleanup-Image /StartComponentCleanup
    Dism /Online /Cleanup-Image /RestoreHealth
    And it gets stuck at 40% for ever! Please help, I'm at my wits' end!
    Thank you! :-)

    (btw, I cannot re-install windows or anything like that right now. I am far away from home, I don't have adequate memory for a backup, and I don't have the windows installtion CDs with me)

      My System SpecsSystem Spec

  2. #2


    Posts : 4
    Windows 8.1


    Here are the results of the sfc scan
    Dropbox - 2017-08-06 CBS.log
      My System SpecsSystem Spec

  3. #3



    Trying to Sith things out
    Bamberg Germany
    Posts : 2,266
    Windows 10 Pro 64 bit


    Just try rebooting then re do it.
    Sometimes it takes a few tries to get everything with SFC, and you always need to reboot, so it can repair stuff that is in use by the system.

    Here is a better version to use:

    fsutil resource setautoreset true c:\&fsutil usn deletejournal /d /n c:&Dism.exe /online /Cleanup-Image /StartComponentCleanup&sfc /scannow&Dism.exe /Online /Cleanup-Image /RestoreHealth&sfc /scannow&Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase&pause
      My System SpecsSystem Spec

  4. #4



    Trying to Sith things out
    Bamberg Germany
    Posts : 2,266
    Windows 10 Pro 64 bit


    ClassicMaint.bat

    You can also just download this batch file and unblock it and right click run as admin, and let it run through.
      My System SpecsSystem Spec

  5. #5


    Posts : 4
    Windows 8.1


    Hi Cliff S, thank you for your help :-)
    I've already rebooted and re-run sfc and dism several times, and dism always pops up some sort of error. The last time I thought I had solved everything but it got stuck at 40%.
    Anyway, I did reboot and re-ran:
    Dism /Online /Cleanup-Image /StartComponentCleanup
    Dism /Online /Cleanup-Image /RestoreHealth
    After 45minutes I got the error 0x80240021, and a note saying that no operation was performed.
    Here is the link to the dism log file: Dropbox - 2017-08-06 dism.log

    I'll try the batch you sent me now :-)
      My System SpecsSystem Spec

  6. #6


    Posts : 4
    Windows 8.1


    Good news! The second time I used your batch it worked perfectly!! No more errors of any kind, all files cleared etc.
    Bad news: my computer still hangs and the system restore still doesn't work. I've tried everything I could, I give up.

    Thanks anyway! :-)
      My System SpecsSystem Spec

  7. #7



    Trying to Sith things out
    Bamberg Germany
    Posts : 2,266
    Windows 10 Pro 64 bit


    Quote Originally Posted by Ursula View Post
    Good news! The second time I used your batch it worked perfectly!! No more errors of any kind, all files cleared etc.
    Bad news: my computer still hangs and the system restore still doesn't work. I've tried everything I could, I give up.

    Thanks anyway! :-)
    Sorry for the late reply Ursula, have you already tried a repair install?
    Repair Install Windows 8

    On Windows 8.1 and Windows 10, I have found it can fix just about any problem, Windows related(as long as a 3rd party program isn't the culprit).
      My System SpecsSystem Spec

dism online cleanup-image restorehealth stuck at 40%
Related Threads
Please note I am a complete novice - so kindly request replies to be suited - with thanks! Windows 8.1 I did a sfc/scannow because my monitor went black a couple of time (not a monitor problem though!) result: Windows Resource protection found corrupt files but was unable to fix some...
I've used Dism /Online /Cleanup-Image /RestoreHealthin admin mode and it still says corrupted.
so when i run sfc scannow it finds corrupt files i then run dism cleanup image, but it gives me this error DISM /Online /Cleanup-Image /RestoreHealthDeployment Image Servicing and Management tool Version: 6.2.9200.16384Image Version: 6.2.9200.16384Error: 0x800f0906The source files could not...
while runningsfcfix.exe it gives me this error CBS & SFC total detected corruption count: 1 also i have try running Dism /Online /Cleanup-Image /RestoreHealth and it gives me a error 0x800f081f in addition i try running the windows 8.1 cd startup repair and it could not repair it. how can...
I am trying to use dism/online/cleanup-image/restorehealth tool in an elevated command prompt to fix corrupt files that sfc/scannow is unable to repair. I keep getting this error message below: Microsoft Windows (c) 2012 Microsoft Corporation. All rights reserved....
Eight Forums Android App Eight Forums IOS App Follow us on Facebook