You will only execute Dism command if Sfc command fails to repair corrupted files.
Please boot your computer with Windows Setup Media and from Windows Recovery Environment start the Command Prompt.
Please type below command into Command Prompt and press Enter key.
The following command scans integrity of all protected Windows system files and repairs files with problems when possible.
Sfc /Scannow /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows
Please replace partition letter D: with Windows installed partition letter. When computer boots into Windows Recovery Environment (WinRE) environment the drive letter assign to Windows partition may not be C: drive letter because Windows 7, 8 , 8.1 and 10 creates a separate system partition when it's installed from scratch. The system partition contains boot files WinRE assigns the system partition the C: drive letter and the Windows installed partition will be assign any other drive letter usually D: drive letter is assign to Windows installed partition. The Bcdedit /enum | find "osdevice" command can be use to find out the drive letter of the Windows installed partition the output of the Bcdedit command is similar to this osdevice partition=D:. The drive letter after partition= is the drive letter of the Windows partition.
If Sfc command not resolve the boot problem execute below command and restart your computer.
dism /Image:C:\ /Cleanup-Image /RevertPendingActions
Replace C:\ partition letter with a partition letter of Windows OS installed partition.
Edited by FreeBooter, 01 December 2017 - 01:25 AM.