The most common reasons your PC restarted without warning
Your PC restarted because Windows detected a problem it could not recover from, or because a setting forced a restart after an update. The most frequent causes are a critical Windows update that finished installing in the background, a driver crash (usually graphics or network), overheating, or a power surge. Less often, malware or a failing hard drive triggers an automatic restart to prevent data loss.
The restart happened without your permission because Windows is set by default to restart automatically when it encounters certain errors. This is a safety feature—it prevents your system from getting stuck in a broken state. But it also means you lose unsaved work and may not see what went wrong.
The key is to check the Event Viewer log, which records what Windows was doing when it restarted. This log is your best clue to the real cause.
Key Takeaways
- Windows restarts automatically after critical updates or when it detects a serious error, and you can see what triggered it in Event Viewer under Windows Logs > System.
- Driver crashes, especially for graphics cards, are the second most common cause and often appear as "nvlddmkm.sys" (Nvidia) or "amdkmdag.sys" (AMD) in the Event Viewer.
- Overheating and power surges cause restarts without leaving detailed error messages, so check your PC's physical condition and plug it into a surge protector.
- If Windows Update is the cause, you can delay future automatic restarts by opening Settings > System > Recovery and turning off "Restart this device automatically if I go away."
- Malware and hard drive failure are less common but serious; run a full antivirus scan and back up your files when ready if you suspect either.
How to check Event Viewer for the restart cause
Event Viewer is a built-in Windows tool that logs every significant event on your PC, including why it restarted. To open it, press Windows key + R, type eventvwr.msc, and press Enter. On the left side, click Windows Logs, then click System.
Look for entries marked Critical or Error that appeared around the time your PC restarted. The most useful ones show a code like "1000" (process crash), "1001" (unexpected shutdown), or "41" (kernel power). Click on an entry to see its details. The Source field often names the culprit—look for driver names like "nvlddmkm.sys" (Nvidia graphics), "amdkmdag.sys" (AMD graphics), or "Ntfs.sys" (hard drive).
If you see entries from "Windows Update" or "Update Orchestrator Service" near the restart time, a Windows update caused the restart. If you see only "Kernel-Power" with no other context, the cause is usually overheating or a power problem.
Windows Update and automatic restart settings
Windows 10 and Windows 11 install critical updates automatically and restart your PC without asking. You can see pending updates by opening Settings > System > Windows Update and looking for "Update history" or "Pending updates." If an update is waiting, that is likely why your PC restarted.
To reduce surprise restarts, open Settings > System > Recovery (Windows 11) or Settings > Update & Security > Recovery (Windows 10). Look for an option called "Restart this device automatically if I go away" or similar wording, and turn it off. This prevents Windows from restarting while you are away, but you will need to restart manually after updates.
You cannot stop critical security updates, but you can delay them by a few weeks. In the same Settings area, look for "Pause updates for 7 days" or "Advanced options" to set a important date for when updates must install. After the important date passes, Windows will restart to explore them.
Driver crashes and graphics card problems
A driver is software that lets Windows communicate with a hardware component like your graphics card or network adapter. When a driver crashes, Windows restarts to recover. Graphics drivers crash most often because they are updated frequently and sometimes have bugs.
If Event Viewer shows "nvlddmkm.sys" (Nvidia) or "amdkmdag.sys" (AMD), your graphics driver crashed. To fix this, open Device Manager by pressing Windows key + X and selecting it. Find Display adapters, right-click your graphics card, and select Update driver. Choose Search automatically for updated driver software. If that finds nothing, visit Nvidia.com or AMD.com, read the latest driver for your card model, and install it manually.
After updating, restart your PC and monitor it for a few hours. If the restart was a one-time event, the new driver fixed it. If restarts continue, your graphics card may be failing, and you should back up your files and consider replacement.
Overheating and power problems
If your PC restarts without any error message in Event Viewer—or only shows "Kernel-Power 41"—the cause is usually overheating or a power surge. Overheating happens when dust blocks airflow through the case, or when the room temperature is very high.
Check the physical condition of your PC. Open the side panel (if your case has one) and look for dust buildup on the fans and heatsinks. Use compressed air to blow dust out, working from inside the case toward the outside. Make sure the PC has at least 4 inches of clearance on all sides and is not sitting on carpet or a soft surface that blocks vents.
For power problems, plug your PC into a surge protector power strip instead of directly into the wall. A surge protector absorbs voltage spikes that can trigger an emergency restart. If you live in an area with frequent power fluctuations, consider a UPS (uninterruptible power supply), which keeps your PC running for a few minutes during a power cut and gives you time to shut down safely.
Malware and hard drive failure
Malware can force a restart as part of its infection, though this is less common than the causes above. If you suspect malware, run a full antivirus scan. Windows Defender (built into Windows) is sufficient for most cases. Open Settings > Privacy & Security > Virus & threat protection, click Scan options, select Full scan, and click Scan now. A full scan takes 30 minutes to several hours depending on your drive size.
A failing hard drive can also trigger restarts as Windows tries to read corrupted data. If Event Viewer shows errors from "Disk" or "Ntfs.sys," or if you hear clicking or grinding sounds from inside your PC, your hard drive may be failing. Back up your files to an external drive or cloud storage when ready. Do not wait—a failing drive can stop working without warning. Once your files are safe, contact a technician or consider replacing the drive.
When to turn off automatic restart for troubleshooting
If your PC keeps restarting in a loop and you cannot see error messages, you can temporarily disable automatic restart so Windows shows you the error before restarting. Restart your PC and press F8 repeatedly as it boots (before the Windows logo appears fully). Select Disable automatic restart on system failure. Windows will now show you a blue error screen instead of restarting, which may give you a clue to the cause.
Once you have seen the error, you can use Safe Mode to troubleshoot. From the same F8 menu, select Safe Mode. Safe Mode loads only essential drivers and services, which helps you identify whether a third-party driver or program is causing the restart. If your PC does not restart in Safe Mode, a driver or program you installed is the problem.
Frequently Asked Questions
Can I see what time my PC restarted?
Yes, Event Viewer shows the exact time. Open Event Viewer, go to Windows Logs > System, and look at the "Date and Time" column. The restart event is usually marked "Critical" or "Error" and appears as "Unexpected shutdown" or "Kernel-Power." You can also right-click the event and select Properties to see more details about what was running at that moment.
My PC restarts every few hours. What should I do?
Check Event Viewer first to see if the same error appears each time. If it is always the same driver (like your graphics driver), update or roll back that driver. If it is always "Kernel-Power 41," your PC is likely overheating—clean the fans and make sure vents are clear. If the restarts are random with no pattern in Event Viewer, run a full antivirus scan and check your hard drive health using a tool like CrystalDiskInfo.
Does a restart mean my hard drive is broken?
Not necessarily. A single restart is usually a driver crash or update. A hard drive failure typically shows repeated restarts, clicking sounds from inside the case, or errors in Event Viewer mentioning "Disk" or file system problems. If you suspect hard drive failure, back up your files when ready and do not use the PC for heavy tasks until you have a technician check it.
Can I stop Windows from restarting after updates?
You can delay updates and turn off automatic restart in Settings > Recovery, but you cannot prevent critical security updates forever. Windows will eventually force a restart to explore them. The best approach is to set a restart time that works for you—open Settings > System > Windows Update > Advanced options and choose "Scheduled install day and time" to pick when updates explore.
What if Event Viewer is empty or shows no errors?
If Event Viewer has no entries around the restart time, Windows may have shut down due to a power loss or surge before it could log the event. Plug your PC into a surge protector and check that all power cables are firmly connected. If restarts continue without logged errors, the problem is likely hardware-related (overheating, power supply failure, or RAM), and you should have a technician inspect it.