PCSUPPORTHUB

How to Check When a Computer Was Turned On and Shut Down in Windows

Use Windows Event Viewer, PowerShell, Command Prompt, and Reliability Monitor to find startup, shutdown, restart, sleep, wake, and unexpected power-off times.

Windows 10 Windows 11 Event Viewer PowerShell

How to Find Windows Startup and Shutdown History

  1. Quick answer: which Windows logs show power events?
  2. Method 1: Check startup and shutdown times in Event Viewer
  3. Method 2: Filter Windows logs by important Event IDs
  4. Method 3: View boot and shutdown history with PowerShell
  5. Method 4: Use Command Prompt to check the last boot time
  6. Method 5: Check unexpected shutdowns in Reliability Monitor
  7. How to check sleep and wake history
  8. How to export the results for troubleshooting
  9. Why some startup or shutdown events may be missing
  10. FAQ

Quick Answer: Which Windows Logs Show Power Events?

Windows records most startup, shutdown, restart, sleep, wake, and power-loss events in Event Viewer. The most useful log is usually Windows Logs → System. For a simple history, look for these Event IDs:

6005 The Event Log service started. This usually indicates that Windows started or booted.
6006 The Event Log service stopped. This usually indicates a normal shutdown.
6008 The previous shutdown was unexpected. This may indicate a crash, forced power-off, or power failure.
1074 A user or process initiated a restart or shutdown. This often shows the reason and the responsible process.
41 Kernel-Power event. Windows detected that the system rebooted without a clean shutdown.
1 Power-Troubleshooter event. The computer resumed from sleep or hibernation.
â„šī¸
Important

Event IDs can tell you when Windows started and stopped, but they do not always prove when the physical power button was pressed. Fast Startup, sleep, hibernation, crashes, and power loss can change how events appear in the log.

How to Check Computer Startup and Shutdown Times in Event Viewer

Event Viewer is the best built-in tool for checking when a Windows computer was turned on, restarted, or shut down. It works in both Windows 10 and Windows 11.

  1. Press Win + R, type eventvwr.msc, and press Enter.
  2. In the left panel, open Windows Logs.
  3. Select System.
  4. In the right panel, click Filter Current Log.
  5. In the Event IDs field, enter: 6005, 6006, 6008, 1074, 41.
  6. Click OK.
  7. Check the Date and Time column for each event.

Double-click an event to see more details. For example, Event ID 1074 may show which process or user initiated a shutdown or restart. Event ID 6008 indicates that Windows detected an unexpected shutdown.

✅
Best for most users

Use Event Viewer when you need a reliable timeline of Windows startup and shutdown activity without installing third-party software.

Best Event IDs to Find When Windows Was Turned On or Shut Down

Filtering the System log by Event ID makes the results much easier to read. The table below explains the most useful events for checking Windows power history.

Event ID Source Meaning What it helps you find
6005 EventLog The Event Log service was started. Approximate Windows startup time.
6006 EventLog The Event Log service was stopped. Approximate normal shutdown time.
6008 EventLog The previous shutdown was unexpected. Power loss, crash, forced shutdown, or system freeze.
1074 User32 A process or user initiated shutdown or restart. Who or what caused a planned restart or shutdown.
41 Kernel-Power The system rebooted without cleanly shutting down first. Unexpected restart, power failure, hardware issue, or forced power-off.
1 Power-Troubleshooter The system resumed from sleep. Wake time and, sometimes, wake source.

For normal daily activity, Event IDs 6005 and 6006 are usually enough. For crashes or sudden power loss, check 6008 and 41. For planned restarts, check 1074.

How to View Windows Startup and Shutdown History with PowerShell

PowerShell is useful when you want a quick list of startup and shutdown events without manually browsing Event Viewer.

Show recent startup, shutdown, restart, and crash events

Right-click Start, select Terminal or Windows PowerShell, and run:

PowerShellGet-WinEvent -FilterHashtable @{
    LogName = 'System'
    Id = 6005,6006,6008,1074,41
} -MaxEvents 50 | Select-Object TimeCreated, Id, ProviderName, Message | Format-List

This command displays the most recent matching events from the System log. The TimeCreated field shows when the event was recorded.

Show only startup events

PowerShellGet-WinEvent -FilterHashtable @{LogName='System'; Id=6005} -MaxEvents 20 |
Select-Object TimeCreated, Id, ProviderName

Show only normal shutdown events

PowerShellGet-WinEvent -FilterHashtable @{LogName='System'; Id=6006} -MaxEvents 20 |
Select-Object TimeCreated, Id, ProviderName

Show unexpected shutdowns and power failures

PowerShellGet-WinEvent -FilterHashtable @{LogName='System'; Id=6008,41} -MaxEvents 30 |
Select-Object TimeCreated, Id, ProviderName, Message | Format-List
âš ī¸
Tip

If PowerShell says that no events were found, the event log may have been cleared, overwritten, or limited by log size. Try increasing the System log size in Event Viewer if you need a longer history.

How to Check the Last Windows Boot Time Using Command Prompt

If you only need the most recent boot time, use Command Prompt or PowerShell with systeminfo. This does not show the full shutdown history, but it is fast.

  1. Press Win + R, type cmd, and press Enter.
  2. Run this command:
Command Promptsysteminfo | find "System Boot Time"

On some non-English Windows installations, the text may be localized. In that case, run:

Command Promptsysteminfo

Then look for the line that shows the system boot time. In PowerShell, you can also use:

PowerShell(Get-CimInstance Win32_OperatingSystem).LastBootUpTime

How to Check Unexpected Shutdowns in Windows Reliability Monitor

Reliability Monitor provides a visual timeline of crashes, failed updates, application errors, and unexpected shutdowns. It is easier to read than Event Viewer, although it gives fewer technical details.

  1. Press Win + R.
  2. Type perfmon /rel and press Enter.
  3. Look for days marked with a red error icon.
  4. Click a day and check for entries such as Windows was not properly shut down.

Reliability Monitor is especially useful when you want to know whether the computer crashed, restarted unexpectedly, or lost power on a specific day.

How to Check When a Windows Computer Woke from Sleep

If the computer was not fully shut down but only entered sleep or hibernation, startup and shutdown Event IDs may not show the complete story. To check wake events, use Event Viewer:

  1. Open Event Viewer.
  2. Go to Windows Logs → System.
  3. Click Filter Current Log.
  4. In Event sources, select Power-Troubleshooter.
  5. Look for Event ID 1.

You can also use PowerShell:

PowerShellGet-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Power-Troubleshooter'} -MaxEvents 20 |
Select-Object TimeCreated, Id, Message | Format-List

To see what last woke the computer, run this command in Command Prompt or Terminal:

Command Promptpowercfg /lastwake

To list devices that are allowed to wake the computer, run:

Command Promptpowercfg /devicequery wake_armed

How to Export Windows Startup and Shutdown History

If you need to send the log to a technician or save it for later, export the filtered results from Event Viewer or PowerShell.

Export from Event Viewer

  1. Open Event Viewer.
  2. Filter the System log by Event IDs 6005, 6006, 6008, 1074, 41.
  3. Click Save Filtered Log File As in the right panel.
  4. Save the file as .evtx.

Export to CSV with PowerShell

PowerShellGet-WinEvent -FilterHashtable @{
    LogName = 'System'
    Id = 6005,6006,6008,1074,41
} -MaxEvents 200 |
Select-Object TimeCreated, Id, ProviderName, Message |
Export-Csv "$env:USERPROFILE\Desktop\windows-power-history.csv" -NoTypeInformation -Encoding UTF8

The exported CSV file will appear on the desktop and can be opened in Excel, LibreOffice Calc, or any text editor.

Why Startup or Shutdown Events May Be Missing in Windows

Sometimes the log does not show the exact event you expect. Common reasons include:

🔎
Recommended check

For the clearest timeline, compare Event IDs 6005, 6006, 6008, 1074, and 41 together instead of relying on only one event type.

FAQ: Checking Windows Computer On and Off Times

Can I see the exact time when the PC was turned on?

You can usually see the approximate Windows startup time using Event ID 6005 or the LastBootUpTime value. This shows when Windows started, not necessarily the exact second the physical power button was pressed.

Can I see who shut down or restarted the computer?

Sometimes. Event ID 1074 may show the user account and process that initiated a planned shutdown or restart. It will not help if the PC lost power or was forced off with the power button.

How can I check if the computer was shut down unexpectedly?

Look for Event ID 6008 and Kernel-Power Event ID 41 in the System log. You can also open Reliability Monitor with perfmon /rel and look for Windows was not properly shut down.

Does Windows keep startup and shutdown history forever?

No. Event logs have a maximum size. When the log becomes full, older events may be overwritten depending on the log settings.

Is there a difference between shutdown, sleep, and hibernation in the logs?

Yes. A full shutdown usually creates shutdown and startup-related events. Sleep and wake activity is usually shown through Power-Troubleshooter and power management events.