Repository navigation
Commit cbd77db
Article: Find What Wakes a Windows PC With Get-WinEvent (#525)
Closes #428
This adds the article pitched in #428. It builds `Get-SleepWakeHistory`,
which pairs Kernel-Power event 42 with Power-Troubleshooter event 1 to
show when a PC slept, why it went to sleep, and what woke it. It then
lists the scheduled tasks with `WakeToRun` set and the devices armed to
wake the PC, and shows how to turn off each one.
The code was tested in Windows PowerShell 5.1 and PowerShell 7.6 on two
Windows 11 PCs (builds 26200 and 26300), a desktop that uses S3 sleep
and a Modern Standby laptop. Every output block in the article comes
from those runs.
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent a9419a0 commit cbd77db
2 files changed
Lines changed: 418 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments