If your Windows 7 machine restarts after login, it indicates that the operating system is failing to complete the standard startup sequence and is rebooting before the desktop environment can load. This specific symptom often points to a critical failure occurring during the Session Initiation phase, which can stem from corrupt system files, problematic third-party software, or faulty driver conflicts. Unlike a startup loop that happens before the login screen, this issue suggests the user profile is loading only to trigger an immediate reset. Identifying the precise trigger requires a systematic approach to isolate whether the cause is software-based or hardware-related.
Initial Diagnostic Steps
Before diving into complex repairs, it is essential to observe the behavior immediately after the restart. Note any error codes, such as 0xc000000e or 0xc0000034, which appear briefly on a blue screen before the machine reboots. If no visual feedback is possible, configuring the system to boot into Safe Mode is the most efficient way to bypass non-essential drivers and services. Safe Mode loads only the core drivers required for the operating system to function, which helps determine if a recently installed application or driver is the root cause.
Accessing Safe Mode
To access Safe Mode on a Windows 7 machine configured to restart automatically, you must interrupt the boot process multiple times. Start by turning on the computer and pressing F8 repeatedly as soon as the hardware POST screen disappears. This action opens the Advanced Boot Options menu. Use the arrow keys to select "Safe Mode" or "Safe Mode with Networking" if you suspect network drivers are involved, and then press Enter to load the limited environment.

Software and Driver Conflicts
If the computer successfully boots into Safe Mode and remains stable, the issue is almost certainly related to software or driver conflicts. In this scenario, the culprit is usually a recently installed application or an updated hardware driver that is incompatible with the current system state. Users should uninstall any software installed prior to the issue occurring, focusing on security suites, virtualization tools, or overclocking utilities, as these are common instigators of system instability.
Driver Rollback
Device drivers, particularly those for graphics cards, storage controllers, and network interfaces, are frequent contributors to boot failures. Within Safe Mode, navigate to Device Manager to check for devices marked with yellow exclamation marks. Right-clicking these devices and selecting "Properties" allows you to roll back to a previously certified driver version. Disabling automatic driver updates temporarily can also prevent Windows from installing a problematic new version automatically.
System File Integrity and Startup Repair
Assuming Safe Mode is unavailable, the next step is to address potential corruption within the core Windows files. The System File Checker (SFC) tool scans the integrity of protected system files and replaces incorrect versions with correct Microsoft versions. To run this, you need to boot from the Windows 7 installation disc or USB drive, open the Command Prompt from the repair options, and enter the command `sfc /scannow /offbootdir=c:\ /offwindir=c:\windows`, adjusting the drive letter as necessary for your partition layout.

Boot Configuration Data
Corruption in the Boot Configuration Data (BCD) is a leading cause of repeated restarts after the login prompt. The BCD acts as the firmware guide, telling the system how to load the operating system. Using the Command Prompt from the installation media, the `bootrec /rebuildbcd` command can scan for existing installations. If corruption is found, `bootrec /fixboot` writes a new boot sector, and `bootrec /fixmbr` repairs the master boot record, resolving the faulty restart loop.
Hardware Troubleshooting
When software-based solutions fail to resolve the restart issue, the problem often lies within the hardware. Random restarts are a classic symptom of overheating, specifically caused by the CPU or GPU shutting down under load to prevent physical damage. Users should open the case to verify that all fans are rotating correctly and that the heatsink is firmly seated with adequate thermal paste applied. Additionally, failing RAM modules or a deteriorating power supply unit can trigger immediate resets, necessitating a process of elimination by testing components individually.
Memory Diagnostics
To rule out memory (RAM) as the source of the instability, utilize the built-in Windows Memory Diagnostic tool. This can be initiated by typing `mdsched.exe` in the Run dialog while in Safe Mode, or by selecting "Windows Memory Diagnostic" from the Advanced Boot Options menu. The tool will typically require a restart to perform a thorough test, scanning for physical memory errors or corrupted data blocks that are causing the system to crash during the login sequence.
![How to reset / recover windows 7 forgotten password [100% Working]](https://i.pinimg.com/originals/bb/eb/7e/bbeb7e292b14c22629f6baa4b10959ce.jpg)






















