Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: SFC /Scannow can't fix corrupt files.

15 May 2015   #11

Windows 7 professional 64 bit

Thanks for your reply. While i suspect you are correct, I am confused. I attached the /? response from my Windows 7 machine. The last line shows the very command that i used. i think this means the system is telling me that it is a supported command and in fact it runs and produces a log albeit showing corruption. Am I missing something or is the system incorrectly representing that this DISM feature is supported when in fact it is not?? Why do you think it is not supported? Thanks for your comments.

Attached Images
SFC /Scannow can't fix corrupt files.-dism.png 
My System SpecsSystem Spec
16 May 2015   #12

Windows 10 Pro X64

Interesting, that's not whart I see when I enter dism /? on my Win 7 Pro X64 system with SP1 and all updates:

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

DISM.exe [dism_options] {WIM_command} [<WIM_arguments>]
DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options] 
         {servicing_command} [<servicing_arguments>]


  DISM enumerates, installs, uninstalls, configures, and updates features
  and packages in Windows images. The commands that are available depend 
  on the image being serviced and whether the image is offline or running.


  /Get-MountedWimInfo     - Displays information about mounted WIM images.
  /Get-WimInfo            - Displays information about images in a WIM file.
  /Commit-Wim             - Saves changes to a mounted WIM image.
  /Unmount-Wim            - Unmounts a mounted WIM image.
  /Mount-Wim              - Mounts an image from a WIM file.
  /Remount-Wim            - Recovers an orphaned WIM mount directory.
  /Cleanup-Wim            - Deletes resources associated with mounted WIM
                            images that are corrupt.


  /Online                 - Targets the running operating system.
  /Image                  - Specifies the path to the root directory of an
                            offline Windows image.


  /English                - Displays command line output in English.
  /Format                 - Specifies the report output format.
  /WinDir                 - Specifies the path to the Windows directory.
  /SysDriveDir            - Specifies the path to the system-loader file named
  /LogPath                - Specifies the logfile path.
  /LogLevel               - Specifies the output level shown in the log (1-4).
  /NoRestart              - Suppresses automatic reboots and reboot prompts.
  /Quiet                  - Suppresses all output except for error messages.
  /ScratchDir             - Specifies the path to a scratch directory.

For more information about these DISM options and their arguments, specify an
option immediately before /?.

    DISM.exe /Mount-Wim /?
    DISM.exe /ScratchDir /?
    DISM.exe /Image:C:\test\offline /?
    DISM.exe /Online /?
When I try to run it I get this:
>Dism /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version 6.1.7600.16385

Image Version 6.1.7601.18489

Error 87

The restorehealth option is not recognized in this context.
For more information, refer to the help.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log1
My System SpecsSystem Spec
16 May 2015   #13

Windows 7 professional 64 bit

I was a little hasty in my entry above. What I actually entered from the prompt was:
Dism /online /cleanup-image /?
If you enter that on your win 7 machine I think you will see the screen I posted in Post #11 above.
To run the command for store corruption, you need to run the last line in the screen shot repeated below:
Dism /online /cleanup-image /scanhealth
You entered:
Dism /online /cleanup-image /restoreHealth
That one is not listed in the help query which is why you get the error 87.
So, it continues to look like the command is supported but yet it produces a log file that shows corruption (see DismLog.txt attached in Post #4). This is what Iíd like to get resolved.
Thanks again for any help you might provide.:)
My System SpecsSystem Spec

16 May 2015   #14

Win 7 64 bit

Tweakit: GokAy in post #6 had the answer spelled out for you.

I experienced the very same problem as you had - on three machines.
I recovered one from a backup image and installed ALL the May 12th updates EXCEPT for KB 3022345.
That solved the negative SFC scans.

Then I just went to the installed windows updates - uninstalled KB 3022345 - restart and all is well.
The last two repairs were quick as I don't have to re-image the hard drive ...

Hope this helps.

My System SpecsSystem Spec
16 May 2015   #15

Windows 7 professional 64 bit

I am aware of post #6. I mentioned earlier that my SFC scans have been clean since I uninstalled KB3022345 per GoKAyís instruction in post #6. The question I posed in posts #8, #11 and #13 relates to the DISM command, the corruption it flags and itís application to the Windows 7 environment. Have you tried running the command below after you solved the KB3022345 problem?
"Dism /online /cleanup-image /scanhealth"
If so, please let us know what it found. The log file will be found here:
Thanks for your comments.
My System SpecsSystem Spec

 SFC /Scannow can't fix corrupt files.

Thread Tools

Similar help and support threads
Thread Forum
sfc /scannow corrupt files
sfc /scannow results: Windows Resource Protection found corrupt files but was unable to fix some of them. According to the CBS.log file (sfcdetails.txt) there are no corrupt files present. Is it possible that Windows is reporting a false positive?
Performance & Maintenance
SFC /scannow cannot fix corrupt files
Hi Just recently I reinstalled Windows 7 Professional x64. My PC was working fine for about a week and I was running SFC scans and CHKDSK to make sure things weren't going wrong as I was having corruption problems before the reinstall. Seemingly out of no where as in I turned off the PC one...
Performance & Maintenance
I ran sfc/scannow and found corrupt files, how do I fix this?
I ran sfc/scannow through cmd and found corrupt files. Any help would be appreciated and since I'm not good at at these sorts of things, please be patient with me and I'll try my best to follow your guidance :) , thank you. Should I upload the whole cbs log or just the corrputed parts?
Performance & Maintenance
SFC Scannow Corrupt Files
SFC Scannow found corrupt files but can't fix them. Any ideas would be appreciated.
Performance & Maintenance
SFC scannow corrupt files
I've been having issues with some Windows updates for a while but most updates worked. I tried using CHKDSK at startup and it made it through 2/3 phases and after saying the 2nd was complete before hanging. I ran SFC /scannow in cmd and it gives me the message "Windows Resource Protection found...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 20:20.
Twitter Facebook Google+