Windows Repair OS
DISM command with CheckHealth option
The CheckHealth option with the DISM tool allows you to determine any corruptions inside the local Windows image. However, the option does not perform any repairs Enter:
DISM /Online /Cleanup-Image /CheckHealth
DISM command with ScanHealth option
The ScanHealth option does a more advanced scan to find out whether the image has any problems Enter:
DISM /Online /Cleanup-Image /ScanHealth
DISM command with RestoreHealth option
If there are problems with the system image, use DISM with the RestoreHealth option to automatically scan and repair common issues
Enter:
DISM /Online /Cleanup-Image /RestoreHealth
Quick note: If the command appears stuck, this is normal behavior. After a few minutes, the process will complete successfully.
Use the System File Checker tool to repair missing or corrupted system files Enter:
sfc /scannow