In the "All Event IDs" text box, type 6005, 6006, 6008 (separated by commas).
In the left sidebar, click the arrow next to to expand the menu, then select System . Click Filter Current Log... in the right-hand Actions pane. PC On Off Time
For system administrators, IT professionals, or anyone managing multiple computers, scripting and remote monitoring can save enormous amounts of time. In the "All Event IDs" text box, type
Get-EventLog -LogName System -Newest 20 | Where-Object $_.EventID -in (6005,6006,6008) | Select-Object TimeGenerated, EventID, Message | Format-Table -AutoSize Use code with caution. Press to view the neatly formatted timestamp table. 3. Task Manager (Current Session Uptime) in the right-hand Actions pane
This displays a historical list of every system restart and power-off event, complete with dates, times, and session durations. 2. The 'log' Command for Sleep/Wake Events
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.
While Windows' built-in tools are powerful, third‑party applications can simplify the process, add features, and present data in more user‑friendly formats. Here are some of the best options: