Your PC can randomly turn off because of an unreliable power supply, overheating, unstable hardware settings, or a Windows or driver crash. Start with external power and cooling checks, then use crash records and hardware diagnostics to narrow the cause. First confirm whether the computer actually loses power, restarts after an error, or only turns off its display.
The Windows steps below use Windows 11. Back up important files before recovery or component work, and establish reliable power before firmware updates, resets, or reinstalls. Stop using the computer if you notice battery swelling, deformation, or a burning smell.
The short version
- Identify the symptom: A blank display, sleep, a crash, and complete power loss need different fixes.
- Check power first: Test another outlet, secure external connections, and use the charger designed for your PC.
- Restore airflow: Clear obstructed vents and reduce unnecessary workloads before checking again.
- Follow the evidence: Use failure history and hardware diagnostics before replacing parts or resetting Windows.
| Check or fix | When to use it |
|---|---|
| Reset graphics and check display connections | Screen goes blank while the PC retains power |
| Adjust screen and sleep timeouts | Apparent shutdown follows inactivity |
| Review lid and power-button actions | Sleep or shutdown follows closing the lid or pressing the button |
| Check outlets and external connections | Computer loses power abruptly |
| Check the laptop charger and cable | Battery drains while plugged in |
| Drain residual power on supported Dell models | Computer will not start after shutting down |
| Improve airflow and lower workloads | Shutdowns coincide with heat or gaming |
| Clean obstructed vents | Dust blocks cooling airflow |
| Inspect Task Manager activity | Unnecessary applications create heavy workloads |
| Disconnect accessories and reverse hardware additions | Failures follow a hardware change |
| Remove overclocking and check component compatibility | Custom hardware settings or configuration may be unstable |
| Disable unnecessary startup applications | Unneeded programs run whenever Windows starts |
| Inspect Reliability Monitor | You need to compare failures with recent installations |
| Uninstall an implicated application | Shutdowns began with that application |
| Record stop codes and disable automatic restart | Crash information disappears during a restart |
| Inspect Event Viewer | You need additional shutdown or crash details |
| Check behavior in Safe Mode | A driver or software conflict remains possible |
| Install Windows and optional driver updates | Applicable fixes are available |
| Roll back a driver | Failures began immediately after its update |
| Search for an updated device driver | A device shows a warning in Device Manager |
| Update manufacturer power-management software | Your model has applicable software updates |
| Update the BIOS | An applicable model-specific update exists and power is stable |
| Run Dell diagnostics | A supported Dell needs hardware or fan checks |
| Run HP diagnostics | A supported HP needs system, battery, or adapter checks |
| Run MyASUS diagnostics | A compatible ASUS needs hardware checks |
| Run a Dell power-supply self-test | Your desktop supports this diagnostic |
| Run DISM and System File Checker | Windows component or system-file damage is suspected |
| Scan for malware | You need to check for malicious software |
| Reinstall through Windows Update | Persistent Windows problems need repair while preserving apps and files |
| Reset Windows | Software problems persist after less disruptive repairs |
Check whether the PC actually turns off
If the PC still has power, press Windows + Ctrl + Shift + B to reset the graphics driver. To change display output, press Windows + P, then press P and Enter. Check the monitor's power and cable connections, then try another cable or display if the screen stays blank.
If the apparent shutdown follows inactivity, open Start > Settings > System > Power & battery, then find Turn my screen off after and Make my device sleep after. Lengthen the relevant battery or plugged-in timeout and check whether the behavior returns; available controls depend on your hardware.
For shutdowns associated with the lid or power button, search for Control Panel. Open System and Security > Power Options > Choose what the power buttons do, then select Change settings that are currently unavailable. Under When I press the power button and, on a laptop, under When I close the lid, choose the intended action for each power source and select Save changes.
Rule out an unreliable power connection
Test the outlet with another working device, try a different outlet, and temporarily bypass the power strip or surge protector. Check that the PC's power cable and adapter connections are secure, and inspect them for damage. If power still cuts out, continue with cooling and hardware checks.
For a laptop, use the charger and cable designed for that model and connect them to its charging port. An insufficient USB-C charger or cable can leave the battery draining while plugged in. Check the manufacturer's required charger specifications if the battery keeps losing charge.
If a supported Dell computer will not start after the shutdown, turn it off and disconnect AC power and peripherals. Remove any user-removable battery, hold the power button for 15 to 20 seconds, then reconnect the battery and power and start the computer. Dell directs laptops with nonremovable batteries to their model-specific RTC-reset instructions instead.
Clear blocked vents and reduce heat
If shutdowns coincide with gaming or other heavy activity, put your laptop on a hard, flat surface and keep its vents unobstructed. Give desktop vents clearance, close unnecessary applications, and reduce the game's graphics settings. Check whether shutdowns continue with the reduced workload.
Turn off the computer and disconnect peripherals before inspecting dusty vents. Dell recommends compressed air with the can upright, followed by a dry microfiber cloth for surrounding dirt, and advises against vacuum cleaners because of static electricity. Follow your manufacturer's cleaning instructions and the precautions for cleaning a laptop fan safely.
Press Ctrl + Shift + Esc to open Task Manager, then examine Processes and Performance for heavy activity. Close unnecessary applications normally and check behavior with only the programs you need. If cooling problems persist, internal fan, heatsink, or thermal-material work requires the exact service manual or a repair technician.
Disconnect accessories and reverse recent changes
Shut down the PC, disconnect nonessential external drives, printers, dongles, memory cards, and other peripherals, then check whether it still shuts down. If failures began after installing RAM or storage, restore the previous configuration using the model's service instructions. Internal changes require serviceable hardware and the appropriate instructions.
Return CPU, GPU, and memory overclocking to their normal supported settings. Check memory compatibility and configuration, along with the power supply's ability to support the complete system under load. Use the motherboard or PC manufacturer's instructions, or have a technician handle these checks.
To reduce unnecessary startup activity, open Start > Settings > Apps > Startup. Turn off applications you do not need at startup, then restart and observe the result. If shutdowns continue, use the failure records to decide which software or driver needs attention.
Use crash records to narrow the cause
Search Windows for View reliability history and open it. Select the day of a shutdown, inspect the recorded failures and technical details, and compare their timing with application, driver, or Windows installations. If the problem began with an application, open Settings > Apps > Installed apps, find it, and select More > Uninstall.
If an error screen appears before a restart, record the stop code and any module name, even if the screen is black rather than blue. To keep that information visible, search for View advanced system settings and select Settings under Startup and Recovery. Uncheck Automatically restart, select OK, and restart; this exposes crash information without repairing the cause.
Open Event Viewer and inspect the System log around the shutdown time, including event 41 fields BugcheckCode and PowerButtonTimestamp. Microsoft says Kernel-Power event 41 records an unclean shutdown and does not diagnose a bad power supply by itself. A nonzero bug-check value supports investigating a crash, while zero values can accompany abrupt power loss or a failure to save diagnostic data.
To check for software or driver involvement, enter Safe Mode through Settings > System > Recovery > Advanced startup > Restart now. Select Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 or F4 for Enable Safe Mode. Keep your BitLocker recovery key available because recovery access may require it.
Check whether the failure recurs in Safe Mode, then restart normally to exit. If the computer becomes unresponsive, follow the steps for restarting an unresponsive computer. Use the crash details and recent installation history to choose the next driver or software check.
Update Windows or undo a problematic driver
Open Start > Settings > Windows Update > Check for updates, install applicable updates, and restart when required. For a relevant offered driver, open Advanced options > Optional updates, select the driver, and choose Download and install. Restart afterward and check whether the shutdown returns.
If failures began immediately after a driver update, right-click Start and open Device Manager. Right-click the affected device and select Properties > Driver > Roll Back Driver. If accurate, select Previous version of the driver seemed more reliable, then select Yes. Rollback requires administrator access and a retained previous driver.
For a device showing a yellow exclamation mark, right-click it in Device Manager and select Update driver > Search automatically for drivers. If necessary, select Search for updated drivers on Windows Update. If rollback is unavailable, check for an applicable updated driver.
On supported Dell systems, open SupportAssist > Home > Update Software > Start, install applicable recommendations, and restart. Dell identifies Intel Dynamic Tuning and Intel Processor Power Management provisioning software as checks for compatible Intel laptops. These Intel-specific checks do not apply to AMD systems.
Consider a BIOS update only after establishing stable power. For a compatible Dell, identify the exact computer on Drivers & Downloads, download its applicable BIOS package, run the installer, and allow the restart and firmware update to finish. For another manufacturer, follow the exact model's firmware instructions.
Run hardware diagnostics before replacing parts
On a supported Dell, press F12 at the Dell logo and select Diagnostics. For a fan check, select ADVANCED TEST, uncheck Select All, select the fan entries, select Thorough, then select RUN TEST. Record any error and validation codes; controls depend on the diagnostic version.
On an HP PC with built-in UEFI diagnostics, turn it on and repeatedly press Esc, then press F2. Open System Tests > Fast Test > Run once, completing a second pass when offered. Use Extensive Test if needed, and record any 24-digit failure ID.
For HP power checks, open Component Tests > Power. Choose Battery or AC Adapter Test, select Run once, and record any failure ID. Available tests depend on the model and diagnostic version.
On a compatible ASUS, open MyASUS > System Diagnosis and choose One-click diagnosis. Select Checkup, then Result, and review failures and repair recommendations. Full functionality requires compatible hardware and an ASUS System Control Interface driver; use model-specific diagnostic instructions for other computers.
Some Dell desktops and all-in-ones also support a power-supply self-test, so check the model manual first. With the computer off and connected to power, press its PSU BIST button; Dell requires a solid LED and normal PSU fan operation for a pass. On supported models without that button, disconnect power for 15 to 20 seconds and reconnect it; the diagnostic LED should illuminate for about three seconds.
Repeat a failed power-supply test once, then seek repair. Do not open the power supply. Give the manufacturer or technician your diagnostic codes if basic power and cooling checks have not resolved the shutdowns.
Repair Windows after checking the hardware
When software remains the likely cause, repair Windows components before considering a reset. Search for Command Prompt, right-click it, select Run as administrator, and select Yes. Run this command first.
DISM.exe /Online /Cleanup-image /RestorehealthAfter it completes successfully, run System File Checker with the following command. Let verification finish, then restart the PC.
sfc /scannowTo scan for malware, open Windows Security > Virus & threat protection > Quick scan. For a broader examination, select Scan options, choose Full scan, then select Scan now. If another antivirus supplies your protection, use its scanning controls.
If problems persist, eligible Windows 11 installations can reinstall the current version while preserving applications and files. Open Settings > System > Recovery, find Fix problems using Windows Update, and select Reinstall now. If desired, select Automatically restart my PC 15 minutes after installation, then select OK; otherwise, restart manually when installation finishes. This option may be unavailable on some managed PCs.
Reserve a reset for persistent software problems after backing up important files. To reset a laptop through recovery, open Settings > System > Recovery > Reset PC, then choose Keep my files or choose Remove everything. Choose Cloud download or Local reinstall and complete the displayed workflow. Both reset choices remove applications and settings, and the second also removes personal files; neither repairs faulty electrical or cooling hardware.
Frequently Asked Questions
How can you check whether a laptop shutdown is related to its battery?
Search for Command Prompt, right-click it, select Run as administrator, and select Yes. Run powercfg /batteryreport, then open the HTML file at the displayed location in a browser. Examine Installed battery, Recent usage, and Battery usage for diagnostic information; generating the report does not repair the battery.
How can you reduce Windows Update restarts while you are using the PC?
Open Settings > Windows Update > Advanced options > Active hours. Set Adjust active hours to Automatically, or choose Manually and enter your usage period. When a restart is pending, select Schedule the restart in Windows Update and choose a convenient time.
Can you cancel a Windows shutdown countdown?
During a pending shutdown countdown, open a new Command Prompt window and run shutdown /a. This cancels a pending Windows shutdown but cannot prevent instantaneous hardware power loss.
When should you try disabling Fast Startup?
Try this for incomplete shutdowns or a computer that turns back on, rather than treating it as a general electrical-power fix. Open Control Panel > Hardware and Sound > Choose what the power buttons do, then select Change settings that are currently unavailable if needed. Uncheck Turn on fast startup (recommended) and select Save changes; the option is available only on systems that expose Fast Startup.
What should you do if Windows no longer starts after a shutdown?
If Windows cannot start, two interrupted boots can invoke Automatic Repair on the third start. Select Advanced options to enter Windows Recovery Environment, then choose Troubleshoot > Advanced options > Startup Repair. Allow Windows to diagnose startup problems, but seek hardware repair if the underlying problem is a failing power supply or thermal cutoff.