Power · Windows 11
Fix a PC that shuts down at the same time every day
A PC that shuts down at the same time every day is almost always obeying a schedule — a task, an update setting, or a power plan timer — not failing at random. Match the shutdown time to the event log first, find the schedule that matches next, and change only that setting.
What you need
- The exact shutdown time, to the minute. Note it on two different days; 'around nine' is not precise enough to match against a schedule.
- Admin access. Reading the event log needs none, but changing tasks and update settings does.
- A note of whether it warns you first. A shutdown with a warning or a closing-apps screen points to software; an instant power cut points elsewhere.
Read the problem before you touch it
- Match the time in Event Viewer first. Open Event Viewer, go to Windows Logs > System, and look at the entries at the shutdown time. Microsoft's Task Scheduler documentation covers the scheduled side of this, but the log comes first: an entry saying a process or the update service initiated the shutdown names the culprit directly.
- Decide whether it is a clean shutdown or a power cut. If your apps close and Windows shows a shutting-down screen, software ordered it. If the machine simply dies instantly at that time, suspect a timer on the power strip, a smart plug, or the building — no Windows setting cuts power instantly.
- Check whether the time matches anything in your day. A shutdown at the same time as a backup, a scan, or the end of a work shift is rarely a coincidence. List what else happens at that minute before changing settings.
The simple fixes, in order
- Check Windows Update active hours and restart settings. Go to Settings > Windows Update > Advanced options and check Active hours and the restart notification settings. Microsoft's Windows Update troubleshooter page covers the update service's behavior; if the shutdown time falls outside your active hours, widen them so updates stop scheduling restarts then.
- Look in Task Scheduler for a shutdown task. Open Task Scheduler and browse the Task Scheduler Library for any task set to run at your shutdown time, especially one whose action runs
shutdown.exe. Disable — do not delete — the task for two days to confirm it is the cause. - Check your security and backup apps' schedules. Open the apps you know run daily and look for a restart or shutdown-after-completion setting set to your shutdown time. Turning off 'shut down when finished' in a backup or scan is a common, easily missed fix.
- Check the power plan's sleep and hibernate timers. In Control Panel > Hardware and Sound > Power Options, edit your plan and check the sleep and hibernate timers. A machine set to hibernate after a fixed idle period can look like a timed shutdown if you stop using it at the same time each day.
The advanced route
- Correlate the log with the task history. In Event Viewer, note the exact minute of the shutdown event, then open Task Scheduler, enable All Tasks History if offered, and find what ran at that minute. Change or disable only the matching task — guessing at tasks one by one takes days.
- Check which plan is actually active. Open Command Prompt and run
powercfg /getactiveschemeto confirm which plan is active; Microsoft documents the tool in Powercfg command-line options. A second, unexpected plan applied by a maker utility can carry the timer that your usual plan does not. - Rule out a scheduled firmware or outlet timer. Enter the firmware setup on a restart and look for a power-on or power-off schedule, and check any smart plug or timer the PC is plugged into. A daily off-time set in either place survives every Windows change.
End state
- The PC stays on through the usual shutdown time for two days running.
- No shutdown task, update restart, or app schedule remains set for that time.
- Event Viewer shows no shutdown initiated at that time on the following days.
When it goes wrong
- The log says the shutdown was initiated by the power button or nothing at all. Treat it as a power cut, not a schedule: check the outlet, strip, and any smart plug first, and try a different outlet for two days.
- You disabled the task but it still shuts down. There are two schedules — the task was one, and an app or update setting is the other. Go back to the event log for the new day and read which process initiated that shutdown.
- It is a work PC and the settings are locked. A shutdown at a fixed time on a managed PC is usually your IT team's policy. Report the exact time and the event-log entry to them rather than working around it.
Related fixes
-
Fix a drive that Windows asks to scan and fix every time you plug it in
The scan-and-fix prompt appears when a drive's file system was left in a dirty state — usually removed without ejecting, or unplugged mid-write. Let Windows check it once, properly, and change the removal habit that keeps setting the flag; if the prompt survives a clean check, the drive itself needs attention.
-
Fix a PC that boots into the BIOS setup screen every time instead of Windows
When a PC lands in BIOS setup on every start, the firmware is telling you it cannot find — or no longer trusts — something it needs to hand over to Windows. Work through the clock battery, the boot order, and the boot mode in that order and most machines go back to starting normally.
-
Fix a PC that freezes for a few seconds every time a drive wakes
A freeze of a few seconds that always ends on its own — often with a faint click or spin-up sound — is a sleeping drive waking up while Windows waits for it. Raise the drive sleep timeout first so the drive stops dropping out mid-session, and treat a drive that takes longer and longer to wake as a health warning.
-
Fix a PC that loses its firmware settings every time it is unplugged
Firmware settings that vanish whenever the cord comes out point to one small coin cell on the motherboard that keeps them alive while the PC is unplugged. Note every setting before you swap it, fit the new battery, and set the clock and boot order once — they should hold from then on.
Sources
- Microsoft Learn, Task Scheduler — how scheduled tasks are defined, triggered, and reviewed.
- Microsoft Support, Windows Update troubleshooter — the update service's checks, relevant to update-scheduled restarts.
- Microsoft Learn, Powercfg command-line options — reading the active power scheme and its settings.