Fix Windows Restart Issues Using Command Prompt

 0 Replies
 0 Subscribed to this topic
 0 Subscribed to this forum
Sort:
Author
Messages
SuperUser Account
Posts: 16

Fix Windows Restart Issues Using Command Prompt

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 PromptRun as administrator) or from the Windows Recovery Environment (<code>Shift</code>+<code>Restart</code> → TroubleshootAdvanced optionsCommand Prompt).

1) Repair system files

Scan and repair corrupted system files. If DISM is available, run it first, then SFC.

DISM /Online /Cleanup-Image /RestoreHealth sfc /scannow

2) Repair boot records (MBR/BCD)

Use when you see boot errors like “Bootmgr is missing” or Windows loops before loading.

bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd

Note: If <code>/fixboot</code> returns “Access is denied”, run <code>bootsect /nt60 SYS /mbr</code> then try again (available in WinRE).

3) Check disk for errors (restarts may be required)

Fix file system issues and reallocate bad sectors. Replace <code>C:</code> with your Windows drive if different.

chkdsk C: /f /r

4) Stop auto-restart after a crash

Prevents instant reboot so you can read the error code (BSOD). Revert later if desired.

bcdedit /set {default} recoveryenabled No bcdedit /set {default} bootstatuspolicy ignoreallfailures

5) Rebuild the BCD store (manual method)

If <code>bootrec /rebuildbcd</code> fails, back up then recreate the BCD store.

attrib c:\boot\bcd -h -r -s ren c:\boot\bcd bcd.backup bcdboot C:\Windows /l en-us /s C: /f ALL

6) Trigger Startup Repair & Safe Mode

From a working session you can jump into the recovery menu:

shutdown /r /o /t 0

Then go to TroubleshootAdvanced optionsStartup Repair or Startup Settings to launch Safe Mode.

7) If the issue started after drivers or updates

wusa /uninstall /kb:####### ← remove last problematic cumulative update pnputil /enum-drivers ← list drivers pnputil /delete-driver oem##.inf /uninstall /force

Replace <code>#######</code> with the KB number and <code>oem##.inf</code> with the target driver from the list.

8) Roll back using a restore point (optional)

If System Restore is enabled, you can launch it from WinRE:

rstrui.exe
Notes:
  • chkdsk /r and DISM can take a while—let them finish.
  • If you’re on BitLocker, you may be prompted for the recovery key in WinRE.
  • Always back up critical data before major repair steps.