Windows 11/10 stuck on Diagnosing your PC

Before you begin working on the fixes, perform Hard Boot. Power down the PC, remove the battery and AC adapter. Reconnect them and then press and hold the power button for 20 seconds and see if it will boot up normally. If it does not help, read on You will then have to power down your computer and boot Windows in Safe Mode. You can then carry out these fixes to get Windows 11/10 out of the stuck Diagnosing your PC, Attempting repairs or Preparing Automatic Repair screen. If you are unable to even boot into Safe Mode, then only the 4th option suggested below will help you.

1] Run System File Checker and DISM

Run CMD as Administrator and then execute the following command to run System File Checker: Restart your system after the scan is completed. Now, in order to fix a corrupted Windows System Image using DISM,  open Command Prompt (Admin) and enter the following three commands sequentially and one by one and hit Enter: Let these DISM commands run and once done, restart your computer and see.

2] Run CHKDSK

Run Command Prompt as Administrator and execute the following command to run chkdsk and then hit Enter. It will either start checking for errors and fixing them or ask for a system restart. Hit Y for scheduling the Disk Checker the next time the system restarts.

3] Disable Automatic Repair

When you have a system drive related issue, the Automatic Startup Repair window opens up automatically during boot. If you think you are in such a situation, you can disable automatic Startup Repair. In Safe Mode, you need to open Command Prompt and execute the following command: Restart your computer and see.

4] Use Installation media to boot and repair your system

You may use the Windows Installation bootable media to boot and repair your system. I hope something helps! If it does not, then there are more suggestions here that you may want to take a look at: