Windows 8 and 8.1 Forums


SFC SCANNOW and DISM RESTOREHEALTH - Repair Corrupt Files

  1. #1


    Posts : 2,633
    Windows 3.1 > Windows 10

    SFC SCANNOW and DISM RESTOREHEALTH - Repair Corrupt Files


    Here is a program to help users with corrupt windows files..
    This program will run System File Checker and DISM commands to repair an online Windows image
    and will look for the setup media to use as a repair source

    Step 1: Download and Extract > IMAGE_HEALTH.ZIP
    Step 2: Right-Click IMAGE_HEALTH.CMD > Select Properties > Select Unblock
    Step 3: Insert your Windows Setup Media ( Mounted ISO or DVD or USB )
    Step 4: Right Click on IMAGE_HEALTH.CMD and Run as Administrator

    IMAGE HEALTH
    download

    This Program supports any ISO with either an Install.wim or Install.esd

    Click image for larger version

    The Preferred Method Of Use To Fix file Corruption Would Be To Select

    Option 1 - /ScanHealth > if shows as Repairable,
    then
    Option 2 - /RestoreHealth > if shows as Missing Source Files,
    then
    Option 3 - /RestoreHealth /source

    Note:
    Dism uses the component store as it's main source for Image Repair, so best to Select Option 2
    Before Selecting Option 3 and redirecting the repair source, to the Windows Setup Media..

    Option 4 > will analyze the component store, it will tell you if the store needs to be cleaned up

    Option 5 > will cleanup (Remove) superseded windows files over 45 days old in the component store

    Option 6 > will cleanup (Remove) ALL superseded windows files in the component store

    Option 7 > will run System File Checker - SFC /Scannow

    Option 8 > will run Revert Pending Dism Actions (UnLock, The Locked Disk Message)

    Option 9 > will run Disk Cleanup Manager in Extended Mode

    Option 10 > will run CheckDisk on a Volume, to scan for and fix disk errors..

    Option 11 > will run ShowKeyPlus to retrieve windows product key

    Option 12 > will export 3rd Party System Drivers into a "Drivers" folder

    Option 13 > will run a MS Tool that will Automatically move all the User files from the Windows.old folder to the corresponding locations within your new Windows installation.

    Option 14 > will run a MS Tool that will Generate a GenuineTicket.xml File

    Option 15
    > will run Never10 to Enable or Disable the Windows 10 GWX Upgrade

    Option 16
    > will run windows iso downloader to allow download of > MS Windows and MS Office ISO's from TechBench

    Note: Option 0

    There are log files to help you and others troubleshoot DISM and SFC issues..
    Those *.Log files will be created on your Desktop as *.txt files..
    So you can post them easily in a forum..
    Last edited by Brink; 31 Jul 2016 at 09:16. Reason: fixed download link

      My System SpecsSystem Spec

  2. #2


    Fantastic, this is a constant and ongoing problem. How about expanding on this and making it into a real tutorial?
    I'm not complaining, what you have is great and should help lots of people but a step by step tutorial could help even non-techy people to do this.
      My System SpecsSystem Spec

  3. #3


    Posts : 22,020
    64-bit Windows 10


    If it helps, this is pretty much outlined in the existing SFC and DISM tutorials.

    DISM really only needs to be ran if SFC is unable to repair corrupted or modified system files.

    SFC /SCANNOW Command - Run in Windows 8

    (step 6 in OPTION TWO if regular /restorehealth is not able to fix)
    DISM - Fixing Component Store Corruption in Windows 8
      My System SpecsSystem Spec

  4. #4


    They look good Shawn. I've never seen them before nor did they ever pop up in a Google search for SFC/DISM problems which is a shame as they seem to cover it all.

    I'll bet there are 8-10 SFC/DISM file corruption threads currently open in eightforums now. I'll take a lok and point them to those tutorial and see what happens.

    Thanks, and thanks KYHI for you work too. I always learn from your posts.
      My System SpecsSystem Spec

  5. #5


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Quote Originally Posted by Ztruker View Post
    Fantastic, this is a constant and ongoing problem. How about expanding on this and making it into a real tutorial?
    I'm not complaining, what you have is great and should help lots of people but a step by step tutorial could help even non-techy people to do this.
    I'll try-

    Tool in case the original link disappears-

    IMAGE_HEALTH.zip

    Some pictures-

    Media Creation tool-

    Click image for larger version

    Save your media to a usb drive.

    Click image for larger version

    Click image for larger version

    Choose option #3-

    Click image for larger version

    Then you will see-

    Click image for larger version

    Then-

    Click image for larger version

    Then-

    Click image for larger version

    Then-

    Click image for larger version

    Then-

    Click image for larger version

    Then-

    Click image for larger version
    Then-

    Done.
    Too many pictures.
    Too hard to keep them in proper order.
    Attached Thumbnails Attached Thumbnails Screenshot_230.png  
      My System SpecsSystem Spec

  6. #6


    Posts : 2,633
    Windows 3.1 > Windows 10


    Tool in case the original link disappears-
    The original link was removed by the creator (Me) as the way the program was written it ran SFC as the very first command..

    Having since realizes SFC is not the BEST Option to run first.. The program was re-written to allow user options, rather then just run command lines...

    The Revision was posted via a link to my Dropbox at the request of Ztucker, last night via pm..

    I choose not to repost the files, it in the forums at that time, because it is still work in progress for me..


    And Dropbox allows me to update the program without having to constantly change the links or add/remove program

    So in that manner, bypassing the Author, I take a little offense..
      My System SpecsSystem Spec

  7. #7


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    So in that manner, bypassing the Author, I take a little offense..
    Noted.
    None intended.

    Option # 3 is the only useful option in the program.
    That's why I tested it.
    The rest are useless.
    Last edited by David Bailey; 17 Aug 2015 at 10:05.
      My System SpecsSystem Spec

  8. #8


    Jimmy (finally looked at your profile for a name ),

    thanks for doing this and making it available. I've referenced several people to your post for how to fix component store source problems.
      My System SpecsSystem Spec

  9. #9


    Posts : 511
    Windows 10 Pro 64 bit


    I downloaded and unzipped the file. When I [Step 3: Right Click on IMAGE_HEALTH.CMD and Run as Administrator] I get a message that says "Windows SmartScreen prevented an unrecognized app from starting". What is the difference in running this script and typing in the command manually?
      My System SpecsSystem Spec

  10. #10


    KYHI Updated his post.

    The difference is in finding the source files to recover from. The batch file does it, manually you would have to figure out what the batch file does then do those steps manually.
      My System SpecsSystem Spec

Page 1 of 15 12311 ... LastLast
SFC SCANNOW and DISM RESTOREHEALTH - Repair Corrupt Files

Similar Threads
Thread Forum
sfc /scannow unable to fix files, DISM error 1392
*I am running windows 8.1 Pro, this issue came up last night when I was suddenly unable to save or view image files (.png, .jpg, etc). Troubleshooting led to discovering corrupt system files, now I am here: Running sfc /scannow in the command prompt (admin level) yielded some interesting...
Performance & Maintenance
sfc /SCANNOW can not repair files, what now?
Hello guys, I am worried because I am having stability issues with my PC and hope that you can help me. I ran sfc /scannow in order to check my system files and it cannot repair them. I ran dism /online /cleanup-image /restorehealth and it finished without problems, telling me that...
Performance & Maintenance
Corrupt files found but not fixed in SFC /Scannow
Hi on my windows 8.1 x64 PC I am having a lot of problems with programs hanging or not starting etc I ran SFC /Scannow and got this message "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....
Performance & Maintenance
Scannow and Dism restorehealth problem
After several sfc /scannow and Dism runs in admin command prompt I get the following attachment reports. I have looked at the logs of both and also visited the Microsoft page indicated in the Dism report. Both go way over my head in trying to find an answer to this problem, something about a...
Performance & Maintenance
sfc /scannow can't fix corrupt files.
Hello! After running the sfc /scannow at command prompt, as administrator, here's what it says: Im at windows 8.1. CBS.log AND sfcdetails are attached to this post.
Performance & Maintenance
massive number of corrupt files - scannow
My sons computer just built 2 months ago. Runs fine for him except a problem with printing...spooler service stops every time just a few seconds after starting it again. Was trying some solutions from this forum and got to step run sfc/scannow. UGLY...seems like thousands of corrupt files that...
Performance & Maintenance
Sfc /Scannow found corrupt files and logs not helping
Sfc /scannow found corrupt files but was unable to fix some. The log does not say whats wrong just stops. Not really sure where to go from here. Help please.
Performance & Maintenance
Eight Forums Android App Eight Forums IOS App Follow us on Facebook