Open Command Prompt as Administrator.
Run each command separately and wait for it to finish before running the next command:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart the PC after all commands have completed.
Synthera Docs