Table of Contents
Windows records useful startup, shutdown, and restart events in the System log. Open Event Viewer and filter that log, or query it with Command Prompt or PowerShell. Read the event source and message along with the ID; an ID number alone is not a complete diagnosis.
Which events matter?
| Event ID | Typical System-log source | What it indicates |
|---|---|---|
| 6005 | EventLog | The Event Log service started; a useful startup marker |
| 6006 | EventLog | The Event Log service stopped; commonly associated with an orderly shutdown |
| 6008 | EventLog | The previous shutdown was unexpected; inspect the shutdown time in the message |
| 6009 | EventLog | Windows version/build information recorded during startup, not a shutdown marker |
| 6013 | EventLog | System uptime information, when recorded |
| 41 | Microsoft-Windows-Kernel-Power | Windows restarted without a clean shutdown |
| 1074 | User32 | A process or user initiated shutdown or restart; the message may identify the process and reason |
| 1076 | User32 | A reason supplied after an unexpected shutdown, where that reporting feature is used |
Microsoft's Event 41 guidance explains that an unclean restart can have several causes. The event does not, by itself, prove a failed power supply, malware, or a particular driver fault.
Method 1: query recent records in Command Prompt
Open Command Prompt. If Windows denies access to the log, reopen it with Run as administrator. These commands read records; they do not change or clear the log.

Show the 20 most recent orderly shutdown markers:
wevtutil qe System /q:"*[System[(EventID=6006)]]" /rd:true /f:text /c:20

Show the 20 most recent Event Log service startup markers:
wevtutil qe System /q:"*[System[(EventID=6005)]]" /rd:true /f:text /c:20
Use /c:1 for only the newest matching event. /rd:true reverses the reading order, and /f:text requests text output. Use the double quotes shown in Command Prompt; single quotes do not perform the same quoting there. See the wevtutil reference for query options.
Method 2: collect several event types with PowerShell
Open PowerShell and use a filtered query rather than retrieving the entire System log first:

Get-WinEvent -FilterHashtable @{
LogName = 'System'
Id = 41,1074,1076,6005,6006,6008,6009,6013
StartTime = (Get-Date).AddDays(-30)
} | Select-Object TimeCreated, Id, ProviderName, Message |
Format-List

This searches the last 30 days and includes the provider so you can distinguish unrelated events with the same number. Change the date range as needed. No matching records may mean none remain for that range; it does not prove the computer was never used.
Microsoft's FilterHashtable guide explains the filtering syntax. Get-WinEvent also avoids relying on the older Get-EventLog cmdlet.
Method 3: use Event Viewer
- Press Windows + R, enter
eventvwr.msc, and press Enter. - Open Windows Logs > System.


Sort by date to inspect the sequence around a restart. Filtering is usually more useful than sorting only by event number.

- Select Filter Current Log in the Actions pane.
- Choose a suitable Logged range.
- Enter
41,1074,1076,6005,6006,6008,6009,6013in the Event IDs box and apply the filter. - Open relevant events and read their General and Details views.


Event 41 and Event 6008 are commonly written when Windows starts again after the interruption. Their logged timestamp is not necessarily the precise instant power was lost; check message details and neighboring records.
Method 4: summarize sessions with TurnedOnTimesView
NirSoft's TurnedOnTimesView analyzes Windows event logs and presents estimated powered-on intervals, durations, and available shutdown details. Download it from the developer, extract the package, and open the executable.

For a remote computer, its advanced options can select another data source. Access requires appropriate permissions and an environment that permits remote event-log access; knowing a computer's name or IP address is not sufficient.

Understand the limits before drawing conclusions
Logs can be overwritten, cleared, or incomplete. Sleep, hibernation, and Fast Startup can complicate the relationship between a button press and a full Windows boot. Startup history also does not show which person was present or how long they actively used the computer.
For repeated crashes, compare the event sequence with Reliability Monitor and other symptoms. TipsMake's built-in Windows tools guide includes Reliability Monitor, and its common PC troubleshooting guide suggests practical next checks.
Reader Comments 0
Sign in with email or Google to join the discussion.