When Windows gets stuck on “Diagnosing your PC,” it means the system detected a startup problem and is attempting to analyze it. If the process never completes, the issue is usually related to corrupted system files, a failing drive, or a boot configuration error. This guide applies to Windows 10 and Windows 11.
Common Symptoms
- Stuck on “Diagnosing your PC” for several minutes or hours
- Loops back to the same screen after restart
- Leads into “Preparing Automatic Repair” repeatedly
- Black screen after the diagnostic message
- Never reaches the login screen
1. Power Cycle the PC
Clears temporary faults that can trigger diagnostic loops.
- Turn off the PC completely
- Unplug power for 30 seconds (or remove battery if possible)
- Reconnect and restart
2. Enter Recovery Mode
Use Windows Recovery to access repair tools.
- Turn the PC on and off three times
- Windows will enter Recovery Mode
- Select Troubleshoot → Advanced options
3. Run Startup Repair
Windows attempts to fix boot issues automatically.
- Select Startup Repair
- Follow the on‑screen instructions
4. Repair Boot Files
Corrupted bootloaders often cause diagnostic loops.
- Open Command Prompt from Recovery Mode
- Run the following commands:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
5. Check Disk for Errors
Drive issues can prevent Windows from completing diagnostics.
- In Command Prompt, run:
chkdsk C: /f /r
6. Run System File Checker
Fixes corrupted or missing system files.
- In Command Prompt, run:
sfc /scannow
7. Run DISM Repair
Repairs deeper Windows image corruption.
- Run the following commands:
dism /online /cleanup-image /checkhealth
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /restorehealth
8. Use System Restore (If Available)
Restores Windows to a working state without deleting files.
- Select System Restore from Advanced options
- Choose a restore point
9. Reset Windows (Last Resort)
If diagnostics continue to loop, a reset may be required.
- Select Reset this PC from Recovery Mode
- Choose Keep my files when possible
Still Having Issues?
If the diagnostic loop continues, the problem may be hardware‑related. Check:
- SSD/HDD health
- RAM stability
- Motherboard or power issues
For deeper troubleshooting, see related guides such as boot repair, drive diagnostics, and hardware testing.