PC Turns On or Off by Itself? How to Find the Cause

Updated on November 10, 2026.

If your PC turns on by itself, first check whether it woke from sleep or started after a full shutdown. If it switches off while you’re using it, note whether it restarts, loses power entirely, or just stops showing a picture. Each symptom points to a different set of checks.

Desktop PC setup and power controls

Start with what you see

What happens Where to look first
Your open apps are still there when the PC comes back. Check what woke it from sleep or hibernation.
The PC starts from a full shutdown, often after a power cut or at the same time each day. Check BIOS or UEFI power and wake settings.
The PC abruptly goes off or restarts while you work or play. Check the Windows System log, power connections, and cooling.
The screen goes black but the PC keeps running. Check the monitor, cable, and display settings before troubleshooting the power supply.

Find what woke Windows from sleep

As soon as the PC wakes, open Windows Terminal or Command Prompt as an administrator. Run these checks one at a time.

  • powercfg /lastwake shows what Windows recorded for its last wake from sleep.
  • powercfg /waketimers lists active timers that can wake the PC.
  • powercfg /devicequery wake_armed lists devices currently allowed to wake it.

If a mouse or network adapter is the source, open Device Manager, find that device, and open Properties > Power Management. If the tab is available, clear Allow this device to wake the computer for that device and test again. Keep a way to wake the PC, such as its power button.

If a timer points to a task you created, open its properties in Task Scheduler and check Conditions > Wake the computer to run this task. Change that option only if the task can wait until the PC is awake. See the Microsoft Powercfg reference.

Check what starts the PC after shutdown

Save your work, then run shutdown /s /t 0 to test a full shutdown. If the PC still starts by itself, check the power options in its BIOS or UEFI. Names vary by model. Look for Auto On Time or RTC Alarm for scheduled starts, Wake on LAN for network-triggered starts, and AC Recovery or Restore after AC power loss for starts after electricity comes back.

Change one setting at a time. If the PC starts whenever a switch or power strip restores power, set AC recovery to Stay Off or its equivalent. See our guide to what a PC does when power returns.

Check unexpected shutdowns and restarts

  1. Note the time of the shutdown and what you were doing. After restarting, open Event Viewer > Windows Logs > System and look around that time.
  2. Event ID 1074 can identify a process or user that requested a shutdown or restart. Kernel-Power Event ID 41 means Windows restarted after an unclean shutdown. Check nearby entries for more detail.
  3. If it cuts out under load, check that the vents have room and that the fans are working. With the PC off, make sure the power cord or laptop charger is seated properly. If there’s a burning smell, sparking, or a damaged cord, stop using the device and arrange service. Leave the power supply enclosure closed.
  4. If it freezes before restarting, note any stop code and back up important files while the PC is stable. Follow our PC freezing troubleshooting guide.

For more detail on what Windows records, see Microsoft’s guide to Event ID 41.

Frequently asked questions

Why does my PC turn on by itself at night?

After sleep, a device or wake timer may be responsible. Run powercfg /lastwake and powercfg /waketimers after it happens. After a full shutdown, check the BIOS or UEFI for a scheduled start or Wake on LAN.

Does Kernel-Power 41 mean my power supply is bad?

Event 41 records an unclean shutdown. A power cut, a freeze, or a Windows crash can all produce it. Use the events around the same time and the conditions under which it happened to narrow down the cause.

Why does my PC come back on after a power cut?

Many motherboards can start when power returns or resume their previous power state. Look for AC Recovery in the firmware and choose Stay Off if you want to start it manually.

Should I disable hibernation to stop the PC waking up?

Start with the read-only wake checks above. Turning off hibernation also changes how Windows can shut down with Fast Startup. Save your work and run shutdown /s /t 0 if you only need to test one full shutdown.