Log Dejargonizer

Windows System Log · Event 42

Event 42: The system is entering sleep

Windows recorded that the machine went to sleep, and why. It is informational, and it is the event people find when they are actually looking for Kernel-Power 41. The Sleep Reason field is the whole value here: it separates a lid closing from an idle timeout from an app putting the PC to sleep.

Also written as Event ID 42Kernel-Power 42The system is entering sleepsleep reason kernel power

What it means for you

On a personal computer

Your PC went to sleep. This is not an error, even though it sits next to Kernel-Power 41, which is. If your machine keeps sleeping when you do not want it to, this event tells you who asked: closing the lid, the idle timer running out, the battery getting low, or a program requesting it.

For an analyst

Useful as a bracket around gaps in other telemetry: an EDR agent going quiet between an Event 42 and the next resume is explained, and one going quiet without an Event 42 is not. It is also the cleanest way to prove a laptop was asleep rather than powered off during a window under question, because a shutdown writes 1074 or 6006 instead.

What it looks like

Sanitised. Addresses come from the RFC 5737 documentation ranges.

Sample
Log Name:      System
Source:        Microsoft-Windows-Kernel-Power
Event ID:      42
Level:         Information
Computer:      LAPTOP-WKS117

The system is entering sleep.

Sleep Reason: Button or Lid

The fields that decide it

Everything else in the log line is context.

Sleep Reason
Why Windows initiated the transition. This is the field to read.
  • Button or LidYou pressed the power button or closed the lid.
  • IdleThe power plan's sleep timer expired with no activity.
  • Application APIA program asked Windows to sleep. Media apps, vendor utilities, and remote management tools all do this.
  • BatteryThe battery reached the critical threshold and Windows slept to protect unsaved work.
TargetState / EffectiveState
Which low-power state was requested and which one was actually reached. They differ when hardware refuses the requested state and Windows falls back — the usual case is a request for modern standby that lands in a deeper sleep instead.
Timestamp
Pair it with the next Event 107 (system resumed) to get the length of the sleep. A 42 with no 107 after it means the machine never woke — it was reset or lost power while asleep, and Event 41 will be sitting at the start of the next boot.

Ordinary reasons this happens

Most of the time it is one of these.

  • You closed the laptop lid or pressed the power button.
  • The power plan's sleep timeout expired. Check it with `powercfg /query` or in Settings > System > Power.
  • A low battery triggering the critical battery action.
  • A media or conferencing application releasing its display and system sleep requests, after which the idle timer that was suppressed finally runs out.
  • Windows' maintenance window finishing and letting the machine drop back into standby.

When it is not ordinary

Forcing a machine to sleep to interrupt monitoring, a backup, or an in-progress response action.

What gives it awaySleep Reason of Application API on a machine nobody was using, repeated, with no scheduled task or vendor utility that explains it. Correlate against process creation for rundll32 or powercfg activity at the same second.

ATT&CK T1562.001

What to do next

  1. Read the Sleep Reason and compare it against what you were doing. If it says Button or Lid and you closed the lid, the case is closed.
  2. If it says Idle and you were using the machine, the idle detection is being defeated by something — run `powercfg /requests` while it is happening to see which process is or is not holding a power request.
  3. If it says Application API, find the application: `powercfg /systemsleepdiagnostics` and `powercfg /sleepstudy /output C:\sleepstudy.html` both produce a report that names the software involved.
  4. Look for the matching resume. Kernel-Power 107 records the wake; Microsoft-Windows-Power-Troubleshooter Event 1 records the wake source, which is the event that actually names the device or timer that woke the machine.
  5. If there is no resume and the next thing in the log is a fresh boot with Event 41, the machine did not wake — it lost power or was reset while asleep, and that is a hardware or power problem, not a sleep problem.
  6. For a machine that wakes on its own, `powercfg -lastwake` and `powercfg -devicequery wake_armed` list what is permitted to wake it. Network adapters and mice are the usual culprits.

Queries to run

powershell Interleaves sleeps and resumes in order, which is how you spot a 42 with no matching 107.
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Kernel-Power'; Id=42,107} -MaxEvents 100 | Sort-Object TimeCreated | Select-Object TimeCreated, Id, Message
powershell The wake source. This is the event that tells you which device or scheduled task woke the machine.
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Power-Troubleshooter'; Id=1} -MaxEvents 20 | Format-List TimeCreated, Message
powershell Generates a readable HTML report of recent sleep and wake activity, including which components blocked sleep. Far quicker than reconstructing it from events.
powercfg /sleepstudy /output C:\sleepstudy.html
wevtutil Last ten sleep transitions with the reason string, on a machine with no PowerShell tooling available.
wevtutil qe System "/q:*[System[Provider[@Name='Microsoft-Windows-Kernel-Power'] and (EventID=42)]]" /c:10 /rd:true /f:text

Common questions

Is Kernel-Power Event 42 an error?

No. Event 42 is informational and simply records that the machine went to sleep along with the reason. It is frequently mistaken for Event 41, which is the Kernel-Power event that does indicate a problem — 41 means Windows found on startup that the previous shutdown never happened cleanly.

Why does my PC keep going to sleep on its own?

Read the Sleep Reason on each Event 42. 'Idle' means the power plan's sleep timer is expiring, so raise or disable it in power settings. 'Application API' means a program asked for the sleep, and `powercfg /sleepstudy` will name it. 'Battery' means the critical battery action fired, which on a machine that is plugged in points at a failing battery or a charger that is not delivering power.

How do I find out what woke my computer back up?

Event 42 records the sleep, not the wake. The wake is Kernel-Power Event 107, and the useful one is Microsoft-Windows-Power-Troubleshooter Event 1, which includes a Wake Source naming the device, timer, or power button responsible. `powercfg -lastwake` gives the same answer from the command line for the most recent wake only.

What does 'Sleep Reason: Application API' mean?

A program called the Windows API that requests a sleep transition, rather than the sleep coming from you or from the idle timer. Vendor power utilities, remote management agents, and some media software all do this legitimately. It is worth identifying which one, because it is the only Sleep Reason that does not correspond to something a person or a timer did.

Read next

Vendor documentation

Last reviewed 7 September 2026