Windows Restarting Before Desktop: How to Fix It
If Windows keeps restarting before you reach the desktop, the usual causes are a bad update, a driver problem, corrupted system files, or failing hardware. The safest first fixes are to unplug outside devices, get into Recovery Mode, and try rollback or repair steps before you touch reset or reinstall options. If Safe Mode works, that is a strong sign the problem is software rather than the drive or memory.
What the restart loop usually looks like
Windows logo and spinning dots, then the PC restarts before the sign-in screen appears
Automatic Repair appears, then the PC restarts again
A black screen appears briefly, then the PC rebootsThis usually shows up during startup, before the desktop loads. If the machine restarts at the same point every time, the cause is often a recent update, a driver change, a damaged system file, or hardware that fails early in the boot process.
If the restart happens after you log in and the desktop appears, that is a different problem and this guide is not the right starting point.
When this fix guide applies and when it doesn’t
This guide applies to Windows 11 and Windows 10 PCs that restart before the desktop loads, including systems stuck on the logo, spinning dots, Automatic Repair, or a black screen loop.
You need physical access to the PC. Some steps require Administrator access once you get into Safe Mode or Recovery tools, and a few steps may involve a restart. Keep your files in mind before you move to reset or reinstall options.
Before you change anything major, do two safe checks:
- Unplug external devices that Windows does not need to start.
- Note whether the loop began right after a Windows update, driver install, or power loss.
If the machine cannot stay powered on at all, or shuts off instantly when you press the power button, that points more toward power, battery, or motherboard trouble than a normal Windows boot problem.
Unplug the easy suspects first
Start with the simplest, least risky fix: remove anything that Windows does not need to start. USB drives, external hard drives, docks, SD cards, printers, controllers, and some keyboards or hubs can interfere with boot.
- Shut the PC down completely.
- Unplug every external device except the keyboard, mouse, and monitor.
- If you use a dock or USB hub, disconnect it too.
- Turn the PC back on and see whether it reaches the desktop.
If the loop stops, plug devices back in one at a time until the problem returns. The last device you added is the one to check first. If nothing changes, the issue is probably inside Windows or the PC itself, not a peripheral.
Get into Recovery Mode or Safe Mode
If normal startup fails, use Windows Recovery Environment so you can reach repair tools without loading the full desktop. On many PCs, Windows opens Recovery Mode automatically after several failed boots. If not, force it by interrupting startup three times in a row: power on, then hold the power button as soon as Windows begins loading. On the next boot, Windows usually opens Recovery.
Once you are in Recovery, choose:
TroubleshootAdvanced optionsStartup SettingsRestart
After the restart, press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.
If Safe Mode works, the problem is more likely a driver, startup app, or recent change than a total Windows failure. If Recovery Mode will not open at all, the problem may be deeper, such as disk corruption or hardware trouble.
Undo the most likely software cause
If the restart loop began right after an update, driver install, or new app, reverse that change first. Do this from Safe Mode if you can get there.
- Open Recovery Mode or Safe Mode.
- If the issue began after a Windows update, go to
Settings > Windows Update > Update history > Uninstall updatesand remove the most recent update.
Settings > Windows Update > Update history > Uninstall updates- If the issue began after a driver change, open
Device Manager, find the device, open its properties, and useRoll Back Driverif that button is available. - If the issue began after a new app or utility, uninstall it from
Settings > Apps > Installed apps.
Settings > Apps > Installed appsIf Windows boots normally after one of these changes, that was likely the trigger. If rollback is unavailable or the restart loop continues, move on to repair tools instead of guessing at more apps or drivers.
Repair damaged system files
If Safe Mode works but normal boot does not, Windows itself may be damaged. Start with Startup Repair from Recovery Mode, then use system file checks from an elevated Command Prompt in Safe Mode.
- In Recovery Mode, go to
Troubleshoot > Advanced options > Startup Repair. - Let it finish and test the boot again.
- If you can reach Safe Mode, open Command Prompt as administrator.
- Run System File Checker:
sfc /scannow- If SFC reports that it found problems it could not fix, run DISM:
DISM /Online /Cleanup-Image /RestoreHealthStartup Repair can fix boot files and startup configuration. sfc /scannow checks protected Windows files. DISM repairs the Windows image that SFC depends on. If these tools complete but the machine still restarts before the desktop, that points away from a simple file problem and toward a stubborn driver issue or hardware fault.
Check whether hardware is triggering the loop
If Windows repair tools do not help, start thinking about RAM, storage, or heat. Hardware problems often show up as random restarts, repeated repair screens, freezes before the logo finishes, or failure even before Safe Mode loads.
For RAM, run the built-in memory test from Recovery Mode or search for Windows Memory Diagnostic if you can get into Safe Mode. A memory problem can cause unpredictable boot failures.
For storage, listen for clicking, repeated spin-up noises, or long delays before the logo appears. A failing SSD or hard drive can make Windows loop during startup because system files cannot be read reliably. If you can reach Safe Mode, check drive status with wmic or a SMART utility from the drive maker, if available.
For overheating, feel whether the machine is getting unusually hot, make sure fans are spinning, and clear dust from vents if you can do that safely after shutting it down and unplugging it. Overheating can cause an immediate restart before Windows fully loads. If the PC stays on longer in BIOS than in Windows, that does not rule out hardware, but it does make a Windows-only cause less likely.
How to know the fix worked
A real fix means the PC passes the point where it used to fail, and it does that more than once. You should get to the sign-in screen, then to the desktop, and the system should stay up long enough for you to open a few apps without another restart.
After the first successful boot, restart the PC one more time on purpose. If it comes back up normally again, that is the best sign the problem is gone. Also watch for the next day or two: if the same boot failure returns after the machine sleeps, restarts for an update, or sits off overnight, the cause may still be there.
If you fixed it by removing a driver or update, avoid putting that same item back until you know it is safe.
If Windows still won’t reach the desktop
If the software fixes do not work, move in this order: System Restore, Reset this PC, then a clean reinstall only if needed and after your data is safe.
- Try
System Restorefrom Recovery Mode if restore points exist. This rolls system files and drivers back without touching personal files. - If that fails, use
Reset this PCfrom Recovery Mode and choose the option that keeps your personal files if available. - If Windows still will not start, back up your files from Recovery Mode or by removing the drive and connecting it to another PC.
- If the machine keeps failing and you have your files, a clean reinstall may be the last software step.
A reset can remove installed apps and settings, and a clean reinstall can erase data if you choose the wrong option or the drive is damaged. Do not go there until you have tried the safer fixes and made sure your files are copied somewhere else.
If the PC still cannot boot after all of that, professional repair is the next sane step, especially if storage or memory tests point to hardware.
How to keep it from happening again
Once the PC is working again, a few habits lower the odds of getting trapped in the same loop.
- Keep regular backups of files you cannot replace.
- Let Windows finish updates before shutting down, and avoid forced power-offs unless the PC is completely frozen.
- Be careful with driver downloads from unknown sites; use the PC maker or device maker when possible.
- Check drive health now and then, especially on older SSDs and hard drives.
- Make sure the machine has enough airflow and that vents stay clear.
If the same boot problem returns after a specific update or device install, that pattern is often more useful than any one error message.
Common questions when your PC keeps rebooting
Data is not automatically lost just because Windows keeps restarting. Your personal files are often still on the drive, which is why the safest order is to try repair steps before any reset or reinstall.
Safe Mode is safe to use. It loads a limited set of drivers and services, which makes it a good place to remove a bad update, uninstall a driver, or run repair commands.
A BIOS setting can cause startup trouble, especially if boot order changed or overclocking settings became unstable. A recent power outage can also expose a failing drive or corrupt a file during the next boot.
If you can reach BIOS but not Windows, that is another clue that the problem is probably not your account or desktop settings. It is either startup software, boot files, or hardware.
Conclusion
If you are still stuck, move from the safest fixes to the stronger ones in order: peripherals, Recovery Mode, Safe Mode rollback, repair tools, then hardware checks. If none of that works, protect your files and get help with a repair install, reset, or professional service.
Frequently Asked Questions
Will I lose my files if Windows keeps restarting?
Usually not right away. Your files are often still on the drive, which is why you should try repair options before any reset or reinstall.
Is Safe Mode safe to use?
Yes. Safe Mode is a limited startup mode meant for troubleshooting, so it is one of the safest places to remove a bad update or driver.
Could a recent power outage cause this?
Yes. A power loss can corrupt startup files, interrupt an update, or expose a failing drive that was already having trouble.
Should I reset BIOS settings to fix it?
Only if you changed something there recently, like boot order or overclocking. Otherwise, start with Windows repair steps first.