Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Check PC Sleep Time on Windows

· 5 min read · Home Tech

In this article
  1. Why the Usual Way Fails
  2. Before You Start
  3. How to Generate the Sleep Study Report
  4. How Long Does the Report Cover?
  5. What If the Report Shows Nothing or Errors?
  6. How to Check Sleep Time Without Command Prompt
  7. Why Does the Report Matter?
  8. How Long Does the Data Stay Accurate?
  9. What to Do If the PC Never Sleeps

Open Command Prompt and run powercfg /sleepstudy to generate a sleep study report that shows your PC's sleep and wake times. This takes about a minute and needs no extra tools. The report is an HTML file that opens in your browser.

Why the Usual Way Fails

Windows does not show a simple "last slept at" time in Settings or Task Manager. The Event Viewer can show sleep events, but its filters are confusing and the log names vary by Windows version. The powercfg tool gives a clean, readable report instead.

Before You Start

  • Close any programs that might wake the PC (like media players or download managers).
  • Make sure your PC is plugged in if it's a laptop—the report covers the last few days, so a full charge helps.
  • You need admin rights to run the command. If you're on a work or school PC, ask the administrator if you can't.

How to Generate the Sleep Study Report

  1. Press Windows + R, type cmd, and press Enter. This opens Command Prompt.
  2. Right-click the Command Prompt window and choose Run as administrator if you see the option. If not, you're already admin.
  3. Type powercfg /sleepstudy and press Enter.
  4. Wait a few seconds. The command finishes silently and prints a file path like C:\Windows\system32\sleepstudy-report.html.
  5. Copy that path, paste it into a browser's address bar, and press Enter. The report opens as a webpage.

The report shows a table with each sleep and wake event, including the exact date and time. The most recent events are at the top. If the report is empty, your PC may not have slept recently—check the Power settings to see if sleep is enabled.

How Long Does the Report Cover?

The sleep study report covers the last 3 days by default. If you need older data, you can change the history length with powercfg /sleepstudy /duration N, where N is the number of days (up to 28). For example, powercfg /sleepstudy /duration 7 gives a week of data.

What If the Report Shows Nothing or Errors?

If the report is blank or says "no sleep states," your PC might be using Modern Standby (common on newer laptops) instead of traditional sleep. In that case, use Event Viewer instead:

  1. Press Windows + R, type eventvwr.msc, and press Enter.
  2. In the left pane, expand Windows Logs and click System.
  3. Click Filter Current Log on the right.
  4. Under Event sources, check Kernel-Power and Power-Troubleshooter.
  5. Look for events with ID 42 (sleep) and 107 (wake). The date and time are listed in the Date and Time column.

Event Viewer shows the same data but in a less friendly format. The sleep study report is easier to read, so try that first.

How to Check Sleep Time Without Command Prompt

If you prefer a graphical tool, open Task Manager by pressing Ctrl + Shift + Esc. Go to the Performance tab and click CPU. At the bottom, look for Up time—this shows how long the PC has been awake since the last sleep or shutdown. It's not a full history, but it tells you the current session's length.

Another option is to open Settings > System > Power & sleep and look at the Sleep section. It shows the timeout settings, not the actual sleep times. For actual times, you still need the report or Event Viewer.

Why Does the Report Matter?

Knowing your PC's sleep times helps you understand if it's sleeping when it should, or waking unexpectedly. If you see frequent wake events, something is forcing the PC awake—often a scheduled task or a network device. The report lists the wake source for each event, which tells you what caused it. You can then adjust settings like Allow wake timers in Power Options.

To change wake timers:

  1. Open Control Panel > Hardware and Sound > Power Options.
  2. Click Change plan settings next to your current plan.
  3. Click Change advanced power settings.
  4. Expand Sleep and then Allow wake timers.
  5. Set it to Disable to prevent scheduled tasks from waking the PC.

This won't affect manual wake actions like pressing a key or moving the mouse.

How Long Does the Data Stay Accurate?

The sleep study report is accurate for the period it covers—usually 3 days, up to 28 if you set it. After that, old events are overwritten. If you need a permanent record, save the HTML file to a folder or export Event Viewer logs. The report itself doesn't update in real time; you must run the command again to get fresh data.

If you're troubleshooting a specific night, run the command the next morning. The report will include the previous night's sleep and wake times.

What to Do If the PC Never Sleeps

If the report shows no sleep events at all, your PC is not entering sleep. Check these settings:

  • Open Settings > System > Power & sleep and set Sleep to a time like 15 minutes.
  • Make sure the power plan isn't set to High performance, which may disable sleep.
  • Check if a program is keeping the PC awake. In Command Prompt, run powercfg /requests to see what's blocking sleep.

The powercfg /requests command shows which drivers or programs are preventing sleep. You can close those programs or update their drivers.

If the PC still won't sleep, it might be a hardware issue. Check your BIOS/UEFI settings for sleep-related options, or consult your PC's manual. For persistent problems, consider talking to a technician.

Is There a Way to See Sleep Time Without Admin Rights?

No. The powercfg command requires admin rights. If you can't get admin access, ask your system administrator to run the command for you. Alternatively, use the Up time in Task Manager as a rough estimate, but it only shows the current session.

Does the Report Show Wake Times Too?

Yes. The sleep study report lists both sleep and wake events in the same table. Each row shows the transition time and the state (Sleep or Wake). This is useful if you want to know when the PC woke up unexpectedly.

If the report doesn't show a wake time for a sleep event, it might mean the PC was shut down instead of waking. Check the event details for more info.