-1

Can windows differentiate normal startup from wake on lan one?

I want to run additional programs at startup ONLY IF turning on was invoked by magic packet.

Is it possible? If so, then how should I do it?

1 Answers1

1

Use WMI to get the instance of Win32_ComputerSystem, read the WakeUpType property, after WoL the value should be 5 “LAN Remote”

Soonts
  • 20,079
  • 9
  • 57
  • 130