First, check that the image is repairable
1. Scan the image to check for damage. At the administrator command prompt, type the following command:
Dism/online/cleanup-image/scanhealth
This command scans all system files and compares the official system files to scan the computer for inconsistencies.
2. Check the image to see if there is any damage detected. At the administrator command prompt, type:
Dism/online/cleanup-image/checkhealth
This command must be used after the previous command has been executed and found to be corrupted by the system files. When using the/checkhealth parameter, the DISM tool reports whether the image is in good condition, can be repaired, or is not repairable. If the image is not repairable, you must discard the image and start over again. If the image can be repaired, you can use the/restorehealth parameter to repair the image.
Second, repair image
If you scan the computer for inconsistencies, detect damage to the system, and report that the image is in good condition and can be repaired, it can be repaired with the/restorehealth parameter.
1. To repair the image, at the administrator command prompt, type:
Dism/online/cleanup-image/restorehealth
This command is to restore those different system files to the official system source files, the other Third-party software and user settings are fully retained, the proportion of the load is much better. And in the scan and repair when the system is not damaged part of the normal operation, the computer can work as usual.
2. Or, to use some of your own sources, instead of using Windows update to repair an online image, type:
Dism/online/cleanup-image/restorehealth
/source:c:testmountwindows/limitaccess
The preceding command needs to be performed in the context of a network, and this command can be used without networking.