Computer Restarts After Logging In? Here’s How to Fix It
Are you dealing with a computer that restarts automatically every time you log in to Windows? You enter your password, reach the desktop, and within a few seconds, your computer suddenly restarts. Sometimes, you may even get a blue screen, a black screen, or an error message before the restart happens.
This problem can be frustrating, especially when you need your computer for everyday work. The good news is that you don’t always need to reinstall Windows or take your PC to a repair shop to fix it.
A computer that restarts after logging in can be caused by several issues, including corrupted system files, problematic startup applications, outdated drivers, Windows Update errors, overheating, or incorrect system settings.
In this guide, we’ll walk through several practical ways to troubleshoot and fix this problem.
Computer Restarts After Logging In? Here’s How to Fix It

To fix a computer that restarts after logging in, start Windows in Safe Mode, disable unnecessary startup applications, uninstall recently installed programs, update problematic drivers, and repair Windows system files using SFC and DISM commands.
You should also check Windows Update, scan for malware, and inspect overheating or hardware problems if the issue continues.
1: Start Windows in Safe Mode
Safe Mode is one of the best places to begin troubleshooting. It starts Windows with only essential drivers and services, preventing many third-party applications from loading.
If your computer works normally in Safe Mode, a startup application, driver, or third-party service could be responsible for the unexpected restart.
Here’s how to enter Safe Mode.
First, turn on your computer and wait for the Windows sign-in screen. Hold down the Shift key on your keyboard, click the Power icon, and select Restart while continuing to hold Shift.
Once the recovery screen appears, select Troubleshoot, then click Advanced Options.
Next, choose Startup Settings and select Restart.
After your computer restarts, you’ll see a list of startup options. Press 4 or F4 to start Windows in Safe Mode. If you need internet access, press 5 or F5 to enter Safe Mode with Networking.
Now sign in and check whether your computer still restarts automatically.
If everything works normally, move to the next steps to identify the software or driver causing the problem.
2: Disable Unnecessary Startup Applications
Some applications automatically launch when Windows starts. A problematic application can interfere with the login process and cause Windows to become unstable.
Disabling unnecessary startup applications can help identify the problem.
To do this, press Ctrl + Shift + Esc to open Task Manager.
If Task Manager opens in a simplified view, click More details.
Now select the Startup apps section from the left sidebar. You’ll see a list of programs configured to launch when you sign in to Windows.
Look for recently installed applications or programs you don’t need immediately after startup.
Right-click an application and select Disable.
Repeat this process for other unnecessary startup applications. Avoid disabling security software or Windows-related components unless you know what they do.
Once finished, restart your computer normally and sign in again.
If the unexpected restart stops, one of the disabled applications may have been responsible. You can enable them individually to identify the problematic program.
3: Uninstall Recently Installed Programs
Did the restarting problem begin after installing a new application? If so, that program could be causing a conflict with Windows.
This sometimes happens when software installs incompatible background services, drivers, or startup components.
To uninstall a recently installed application, press Windows + I to open Settings.
Select Apps and then click Installed apps.
Find the application you installed shortly before the problem started.
Click the three-dot menu beside its name and select Uninstall.
Follow the instructions displayed on your screen to complete the removal.
After uninstalling the application, restart your computer and check whether the issue is resolved.
If you recently installed multiple programs, remove them one at a time rather than uninstalling everything together. This makes it easier to identify the actual cause.
4: Update or Roll Back Problematic Drivers
Device drivers help Windows communicate with hardware components such as graphics cards, network adapters, sound devices, and storage controllers.
If a driver becomes corrupted or incompatible, Windows may experience unexpected crashes or restarts during login.
To check your drivers, right-click the Start button and select Device Manager.
Expand categories such as Display adapters, Network adapters, and Sound, video and game controllers.
Look for devices displaying a yellow warning symbol.
Right-click the problematic device and select Update driver.
Choose Search automatically for drivers and follow the instructions.
If the problem started immediately after a driver update, you can also try rolling it back.
Right-click the device, select Properties, and open the Driver tab.
If the Roll Back Driver option is available, click it and follow the instructions.
Restart your computer and check whether the problem disappears.
5: Repair Corrupted Windows System Files
Corrupted or missing Windows system files can cause unexpected restarts, particularly when Windows loads your user account and desktop environment.
Fortunately, Windows includes two useful command-line tools: System File Checker (SFC) and Deployment Image Servicing and Management (DISM).
To use them, right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
If prompted by User Account Control, click Yes.
First, enter this command and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
Wait for the operation to finish. It may take several minutes.
Next, enter the following command:
sfc /scannow
Press Enter and allow Windows to scan and repair corrupted system files.
Don’t close the window while either scan is running.
Once both operations are complete, restart your computer and check whether Windows still restarts after login.
6: Check Windows Update
An incomplete or problematic Windows update can sometimes cause startup instability.
If the problem started after a recent update, checking your update history is a good idea.
Press Windows + I to open Settings.
Navigate to Windows Update and select Update history.
Review the recently installed updates and check whether the restarting issue began around the same time.
If you suspect a particular update, scroll down to Uninstall updates.
Find the recently installed update and select Uninstall if Windows allows it.
However, don’t remove security updates without a good reason. If the problem is unrelated to an update, check for pending Windows updates and install available stable updates instead.
Restart your computer after making the changes.
7: Perform a Malware Scan
Malware can interfere with Windows startup processes, modify system settings, and cause unexpected system behavior.
If your computer started restarting after downloading suspicious software or opening an unfamiliar file, run a security scan.
Open Windows Security from the Start menu.
Select Virus & threat protection and click Scan options.
Choose Full scan and click Scan now.
Windows will examine your files, running applications, and other areas for potential threats.
If Windows Security detects anything suspicious, follow the recommended actions to quarantine or remove it.
You can also run a Microsoft Defender Offline scan if you suspect malware is interfering with normal Windows operation.
Save your work before starting an offline scan because your computer will restart during the process.
8: Disable Automatic Restart on System Failure
Sometimes, Windows encounters a serious system error and automatically restarts before you can read the error message.
Disabling automatic restart can help you identify the actual problem.
To change this setting, press Windows + R to open the Run dialog box.
Type the following command:
sysdm.cpl
Press Enter to open System Properties.
Select the Advanced tab and locate the Startup and Recovery section.
Click Settings.
Under System failure, find the option called Automatically restart.
Uncheck this option and click OK to save your changes.
Now restart your computer and sign in again.
If Windows encounters a system failure, it may display a blue screen instead of immediately restarting.
Write down the error code displayed on the screen. You can use that information to identify the driver, hardware component, or Windows process responsible.
Remember that this setting doesn’t repair the underlying issue. It simply helps you see the error.
9: Check for Overheating and Hardware Problems
If you’ve tried the software-related solutions and your computer still restarts after login, consider checking its hardware.
Overheating is one possible cause. When the processor or graphics card becomes too hot, the computer may shut down or restart to protect its components.
Make sure your computer’s air vents aren’t blocked. If you’re using a laptop, place it on a hard, flat surface instead of a bed or cushion.
Listen for unusual fan noises and check whether the computer becomes unusually hot.
You should also consider checking your RAM and storage drive.
To test memory, press Windows + R, type mdsched.exe, and press Enter.
Select Restart now and check for problems. Windows will restart and run its memory diagnostic.
For storage health, check the drive manufacturer’s diagnostic utility or use a trusted drive-health monitoring application.
If the computer continues restarting, consider having its RAM, power supply, motherboard, and storage drive professionally inspected.
FAQs
Why does my computer restart immediately after logging in?
Your computer may restart because of corrupted Windows files, incompatible drivers, problematic startup applications, malware, or hardware problems. Start by testing Windows in Safe Mode to determine whether a third-party application or driver is responsible.
Why does my PC restart after entering my password?
This can happen when Windows loads your desktop environment, startup services, and background applications. A problematic application, corrupted user profile, or incompatible driver may trigger a system crash during this process.
Can a Windows update cause my computer to restart after login?
Yes. An incompatible or incomplete Windows update can sometimes cause startup problems. Check your update history and consider uninstalling a recently installed update if the issue started immediately afterward.
Will reinstalling Windows fix the automatic restart problem?
Reinstalling Windows can resolve software-related problems, but it won’t necessarily fix faulty RAM, overheating, or power supply issues. Try the troubleshooting methods above before considering a Windows reinstallation. Always back up important files first.
How do I stop Windows from restarting automatically?
Open System Properties by running sysdm.cpl. Navigate to Advanced > Startup and Recovery > Settings and uncheck Automatically restart under System failure. This helps you identify blue screen errors instead of allowing Windows to restart immediately.
