How to Get Out of Diagnosing Your PC Loop on Windows 11

If your Windows 11 PC keeps getting stuck on the “Diagnosing your PC” screen, you’re not alone. This issue usually appears when Windows fails to start correctly due to system file corruption, hardware issues, or an interrupted update.

Instead of booting to the desktop, the system repeatedly shows: “Diagnosing your PC”, “Attempting repairs” …and then either restarts endlessly or gets stuck in a repair loop.

Don’t worry — this can be fixed. In this guide, we’ll walk you through how to get out of the “Diagnosing your PC” loop in Windows 11 using different recovery and repair methods.

1. Why Your PC Gets Stuck on “Diagnosing Your PC”

Windows runs automatic startup repair when it detects boot problems. However, the process can get stuck if:

  • System files or the boot configuration are corrupted.
  • A recent Windows update failed to install.
  • A faulty driver or hardware change causes startup issues.
  • There’s a bad sector on your disk.
  • The automatic repair process itself fails or loops.

To fix it, you’ll need to boot into recovery mode and use manual repair options.

2. Force Restart and Interrupt Boot (to Access Recovery)

If your PC is stuck in the loop, the first step is to access the Windows Recovery Environment (WinRE) manually.

  1. Hold down the Power button for 10 seconds to turn off your PC.
  2. Turn it back on.
  3. As soon as you see the Windows logo, press and hold the Power button again to force shutdown.
  4. Repeat this process 3 times.

On the fourth boot, Windows should automatically load into the Automatic Repair screen.

From here, select Advanced options to continue troubleshooting.

3. Boot into Safe Mode

Once in recovery mode, booting into Safe Mode helps you bypass most startup issues and uninstall problematic updates or drivers.

  1. On the Automatic Repair screen, click Advanced options → Troubleshoot → Advanced options → Startup Settings → Restart.
  2. After your PC restarts, you’ll see a list of options.
  3. Press 4 or F4 to start Windows in Safe Mode.

If Safe Mode loads successfully, your main system is fine — the issue is likely caused by a driver, update, or startup program.

4. Run Startup Repair Manually

If Windows doesn’t automatically repair itself, try running the Startup Repair tool manually.

  1. On the Advanced options screen, select Troubleshoot → Advanced options → Startup Repair.
  2. Select your Windows installation and wait for the tool to diagnose and repair issues.

If Startup Repair can’t fix the problem, it will display a report — move to the next step for manual repair.

5. Use Command Prompt to Repair Boot Files

If your boot configuration is damaged, rebuilding it can fix the loop.

  1. From the Advanced options menu, select Troubleshoot → Advanced options → Command Prompt.
  2. In the Command Prompt window, type these commands one by one, pressing Enter after each: bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd
  3. Once done, close the Command Prompt and restart your PC.

If your bootloader or BCD (Boot Configuration Data) was corrupted, this should repair it.

6. Check Disk for Errors

Disk errors or bad sectors can trigger boot loops. Run CHKDSK from the recovery Command Prompt.

  1. In Command Prompt, type: chkdsk C: /f /r
  2. Press Enter and wait for the process to complete.

This scans for and repairs file system errors. If CHKDSK finds serious disk issues, consider backing up your data and replacing the drive.

7. Run System File Checker and DISM

Corrupted system files often cause repair loops. Use SFC and DISM tools to restore them.

  1. In Command Prompt (from Advanced options), type: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
  2. Press Enter and let it finish.

Then run:

dism /image:C:\ /cleanup-image /restorehealth

These commands check for corrupted files and replace them with healthy versions from the Windows component store.

8. Disable Automatic Startup Repair

If Windows keeps looping through the repair cycle, you can temporarily disable automatic repair to boot normally or reach Safe Mode.

  1. Open Command Prompt from Advanced options.
  2. Type: bcdedit /set {default} recoveryenabled No
  3. Press Enter and restart your PC.

If Windows starts normally, you can troubleshoot further from within the desktop environment.

To re-enable it later, use:

bcdedit /set {default} recoveryenabled Yes

9. Uninstall Problematic Windows Updates

A recent Windows update can sometimes trigger the diagnosing loop. You can uninstall updates from recovery mode.

  1. Go to Troubleshoot → Advanced options → Uninstall Updates.
  2. Choose either:
    • Uninstall latest quality update (recent patches), or
    • Uninstall latest feature update (major version upgrade).
  3. Follow the on-screen instructions and restart your PC.

If the issue started after a recent update, this should fix it.

10. Restore Windows to a Previous State

If you’ve created a System Restore Point previously, you can roll back your system to a working state.

  1. From the Advanced options screen, select System Restore.
  2. Choose your user account and log in.
  3. Select a restore point created before the problem started.
  4. Follow the prompts to complete restoration.

After rebooting, your PC should start normally.

11. Reset or Reinstall Windows 11

If none of the above solutions work, performing a system reset can fix deep system corruption while keeping your personal files.

  1. In Advanced options, choose Troubleshoot → Reset this PC.
  2. Choose Keep my files (recommended) or Remove everything (for a clean start).
  3. Follow the prompts to reinstall Windows 11.

Once the reset completes, your system should boot properly without looping.

12. Check Hardware (If the Problem Persists)

If even a reset doesn’t solve the issue, you might be dealing with failing hardware:

  • RAM: Run the Windows Memory Diagnostic tool.
  • SSD/HDD: Test your drive using manufacturer tools (e.g., Samsung Magician, WD Dashboard).
  • Motherboard or cables: Reseat connections or test components individually.

Hardware faults can sometimes trigger boot repair loops that software fixes can’t resolve.

Wrapping Up

The “Diagnosing your PC” loop in Windows 11 can be caused by anything from corrupted boot files to faulty updates or hardware issues.

Start with simple fixes like Safe Mode and Startup Repair, then move on to boot file rebuilds, SFC/DISM repairs, or System Restore. If all else fails, a Windows reset or reinstall will resolve most issues.

By following these steps carefully, you can break free from the diagnosing loop and get your PC back to normal operation — without losing your data.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.

X