I work funny hours; sometimes I finish work at 3, sometimes 4 and sometimes 6. And I can never remember what hours I’ve worked.
Little tip to share that helps me remember. This only works if you hibernate or log off your [Windows] PC on leaving work.
- Open Event Viewer (Start > Run EventVwr)
- Expand Windows Logs
- Right click on System, Filter Current Log …
- In Event sources: Copy+Paste “Kernel-Power, Power-Troubleshooter”, then click OK
- Right click on System, Save Filter to Custom View… and give it an appropriate name, e.g. Log on and off times
If you now expand Custom Views and select Log on and off times you’ll see something like this:
- Kernel-Power tells you the time you slept or hibernated the computer.
- Power-Troubleshooter tells you when the computer work up.
We can also get this information with PowerShell, in case, I dunno the Event Viewer decides to get corrupted and crash everytime you try and filter the results #truestory.
Get-EventLog -LogName System -Source Microsoft-Windows-Power-Troubleshooter,Microsoft-Windows-Kernel-Power -After (Get-Date).AddDays (-5)
Which will show log on and off times for the past week. Tweak the (Get-Date).AddDays(-5) setting for other date ranges.
Cover image by Eder Pozo Pérez
Posted in : tips