Search for in the Windows start menu and open it. Click Create Basic Task in the right pane. Name the task (e.g., "Nightly Shutdown") and click Next.
In the "All Event IDs" text box, type the specific IDs you want to find, separated by commas:
Optimizing energy usage by setting automatic shutdown schedules. PC On Off Time
Here are some best practices to keep in mind:
Your computer is always whispering its history. The is not just a technical metric—it’s a biography of your machine’s life, its struggles (crashes), its discipline (clean shutdowns), and its vulnerabilities (unauthorized night logins). With the tools and methods outlined in this article—from Event Viewer and PowerShell to NirSoft utilities—you can transform raw event IDs into actionable insights. Search for in the Windows start menu and open it
Get-EventLog -LogName System | Where-Object $_.EventID -in 6005,6006,41 | Select-Object TimeGenerated, EventID, Message | Export-Csv -Path "C:\PowerEvents.csv"
If you are looking to when your PC turns on or off: In the "All Event IDs" text box, type
Windows automatically logs power events, which can be viewed through built-in tools or specialized software. : The most reliable manual method. Search for "Event Viewer" in the Start menu. Navigate to Windows Logs > System . Filter for specific Event IDs: 6005 : The event log service started (System startup) [10]. 6006 : The event log service stopped (Clean shutdown) [10]. 6008 : Unexpected shutdown (e.g., power loss or crash) [10]. Third-Party Tools :
Here is a step-by-step actionable guide to slashing your boot and shutdown times.
: To regularly shut down your PC at the same time every night, search for Task Scheduler Create Basic Task
: Press Ctrl + Shift + Esc , go to the Performance tab, and select CPU . Your "Up time" is displayed at the bottom.