DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth
If you get the error message "cannot find source files"you need to have an ISO file mounted and need to specify where it is located with the below command
The ISO must be exactly the same version as the running OS. An ISO of 10586.0 will not repair a running system of 10586.35 because it has additional updates and files.
DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess Where "X" is the drive letter where the ISO is located. Simply change the "X" to the correct drive letter
Was your computer connected to the internet when you tried this command. If not, try it again with it connected to the internet. If so, have a look at Colif's link. It describes how to use a locally mounted ISO to be the source for DISM rather than over the internet. However the ISO has to match the version of Windows you are repairing.techgeek said:
The file that is corrupted isn't the cbs.log, that is the log for the scan. It's a large file, but it should contain the name(s) of the corrupted files.
Try this now:
Quote:
DISM /Online /Cleanup-Image /RestoreHealth
This will restore the files. It has to be run from an elevated command prompt.
I did it, but still it doesn't do anything in my opinion! And it says : The source files could not be found. Please specify the location of the file.
DISM.exe /Online /Cleanup-image /Restorehealth
Important When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions. However, if your Windows Update client is already broken, use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from a removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
Note Replace the C:\RepairSource\Windows placeholder with the location of your repair source. For more information about using the DISM tool to repair Windows, reference Repair a Windows Image.