How to tell what wake source is when Wake Source: Unknown

Same problem as so many people: My computer wakes itself, but I can't determine the source. Windows 10. It's happened around 3:40am, 12:21am, etc. Seems to happen every few weeks.

These are some details regarding my system configuration after the wake happens:


Configruation:

powercfg -devicequery wake_armed → NONE

powercfg -waketimers → There are no active wake timers in the system.

Power Options Advanced Settings → Sleep → Allow wake timers → Disable

(Classic) Control Panel / System and Security / Security and Maintenance / Automatic Maintenance → "Allow scheduled maintenance to wake up my computer at the scheduled time" unchecked.

All wake on "Magic Packet" or "Pattern Match" or "Link Settings" of all network adapters are set to "Disabled" in the Advanced settings of the devices in Device Manager.

ASRock Z170 Extreme 7+ motherboard (no "wake from sleep" options found in UEFI).


Diagnostic Info:

Event Viewer → Wake Source: Unknown

powercfg -lastwake → Wake History Count - 1, Wake History [0]: Wake Source Count - 0


I think I finally found out how to tell what the wake source is in this scenario:

Get-ScheduledTask | where {$_.settings.waketorun}

This shows the "Reboot" task under UpdateOrchestrator which I believe might have been causing the problem.

Instructions on how to disable it are found in Step 2 of this fantastic answer: https://superuser.com/a/973029/226996

I'll report back if I'm finding the computer is still waking and I can't determine the source with this method...


I also had the issue of an unknown wake source, but I saw from the Windows System log that right after sleep was aborted (Power-Troubleshooter entry) the next event involved the Ethernet adapter that was connected to the LAN. Turning of the adapter power triggering stopped the issue, and then turning it back on but restricting the wake action to magic packets solved the issue. Not sure why the cmd for lastwake couldn't reveal this, but it might be helpful to others.

Windows System Logf