How can I tell whether the system booted because of Wake-on-LAN (WoL) or because of the power button?

My approach would be to use dmidecode which will read data from the BIOS, with something like

dmidecode | findstr /R /C:”Wake-up”

Similarly to feitingen’s answer to this question

If that doesn’t work then your hardware must not be properly recording that value.

Leave a Comment