How to Find When Your PC Last Shut Down
In this article
You can find when your PC last shut down by checking the Windows Event Viewer, specifically the Kernel-Power event log, or by running a simple command in PowerShell. The exact shutdown time is recorded in the system log as Event ID 1074 (for intentional shutdowns) or Event ID 6006 (for clean shutdowns). This article explains both methods, how to interpret the results, and what to do if the logs are missing.
Why Windows Logs Shutdown Times
Windows records shutdown events for troubleshooting and audit purposes. Every time the operating system shuts down, restarts, or crashes, it writes an entry to the System event log. These entries include the timestamp, the reason for the shutdown (if provided), and the source (e.g., user, application, or system). The logs are stored in the Windows Event Log service, which automatically manages the log size and retention. By default, the System log can hold up to 20 MB of data, which may cover weeks or months depending on how often your PC shuts down.
Method 1: Using Event Viewer (GUI)
The most reliable way to find the last shutdown time is through Event Viewer. Here’s how:
- Press Win + R, type
eventvwr.msc, and press Enter. - In the left pane, expand Windows Logs and select System.
- In the right pane, click Filter Current Log in the Actions menu.
- In the Event sources dropdown, check Kernel-Power and User32, then click OK.
- Look for events with IDs 1074 (shutdown initiated by user or app) or 6006 (clean shutdown). The timestamp of the latest such event is the last shutdown time.
Event ID 1074 is logged when a user or application initiates a shutdown. It shows the reason code and the user name. Event ID 6006 is logged when the system shuts down cleanly after a proper shutdown. If the PC lost power or crashed, you may see Event ID 6008 (unexpected shutdown) instead.
Method 2: Using PowerShell or Command Prompt
You can also retrieve the last shutdown time with a single command. Open PowerShell or Command Prompt as administrator and run:
Get-WinEvent -FilterHashtable @{LogName='System'; ID=1074} | Select-Object -First 1 TimeCreatedThis returns the most recent Event ID 1074 entry. If you want to see the last clean shutdown (6006), replace 1074 with 6006. For a quick check of the last time the system booted (which is the opposite of shutdown), use:
systeminfo | find "System Boot Time"
That shows when the PC was last started, not shut down, but it is often useful for comparison.
Interpreting the Results
When you find the event, the Date and Time column shows the exact moment the shutdown was initiated. For Event ID 1074, the message often includes the reason: for example, "The process C:\Windows\System32\winlogon.exe has initiated the shutdown of computer DESKTOP-ABC on behalf of user DOMAIN\User." That tells you who triggered it. If the reason code is "0x80020010" (or similar), it may indicate an API call, which often means an application requested the shutdown. Event ID 6006 simply says "The event log service was stopped," which happens during a clean shutdown. If you see Event ID 6008, it means the previous shutdown was not clean—likely a power loss or crash—and the log will show the time of the unexpected shutdown.
Common Problems and Solutions
Sometimes the logs are missing or empty. This can happen if the System log was cleared, if the log size was too small and old events were overwritten, or if the PC was hard-reset (forced power off) and the event was never written. In such cases, you can check the Windows Event Viewer for Microsoft-Windows-Kernel-Power/Thermal-Operational events, or look at the ShutdownType registry key (though it only shows the last shutdown type, not the time). Another option is to use third-party tools that scan the system for shutdown times, but they rely on the same logs. If you need to track shutdowns going forward, you can enable the Shutdown Event Tracker via Group Policy (for Pro and Enterprise editions), which forces users to provide a reason and logs it.
Frequently Asked Questions
How do I find the last shutdown time on Windows 10 or 11?
Use the Event Viewer method above. The steps are identical on both Windows 10 and Windows 11. You can also use the PowerShell command, which works on both.
What if I see Event ID 6008 instead of 1074?
Event ID 6008 indicates an unexpected shutdown, such as a power outage or a hard crash. The event will show the time of the last unexpected shutdown. If you want the last intentional shutdown, look for 1074 or 6006. If you only see 6008, it means the last shutdown was not clean.
Can I see the shutdown time from another computer?
Yes, if you have admin rights on the remote PC, you can open Event Viewer and connect to the remote computer. In Event Viewer, right-click on "Event Viewer (Local)" and select "Connect to another computer." Then browse the System log as usual.
Why is the shutdown time different from the time my PC turned off?
The logged time is when the shutdown process started, not when the power was cut. A shutdown can take a few seconds to a minute, especially if there are apps that need to close. The event timestamp is the moment the shutdown command was issued.
Can I delete or alter shutdown logs?
Yes, an administrator can clear the System log, which removes all events. However, doing so also removes other system events, which may hinder troubleshooting. It is not recommended unless you are sure you don't need the logs.