Use these safe, proven Command Prompt fixes when Windows won’t restart properly, is stuck in a reboot loop, or shows boot errors. Run from an elevated Command Prompt (right-click Command Prompt → Run as administrator) or from the Windows Recovery Environment (<code>Shift</code>+<code>Restart</code> → Troubleshoot → Advanced options → Command Prompt).
Scan and repair corrupted system files. If DISM is available, run it first, then SFC.
Use when you see boot errors like “Bootmgr is missing” or Windows loops before loading.
Note: If <code>/fixboot</code> returns “Access is denied”, run <code>bootsect /nt60 SYS /mbr</code> then try again (available in WinRE).
Fix file system issues and reallocate bad sectors. Replace <code>C:</code> with your Windows drive if different.
Prevents instant reboot so you can read the error code (BSOD). Revert later if desired.
If <code>bootrec /rebuildbcd</code> fails, back up then recreate the BCD store.
From a working session you can jump into the recovery menu:
Then go to Troubleshoot → Advanced options → Startup Repair or Startup Settings to launch Safe Mode.
Replace <code>#######</code> with the KB number and <code>oem##.inf</code> with the target driver from the list.
If System Restore is enabled, you can launch it from WinRE: