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?
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?
Use WMI to get the instance of Win32_ComputerSystem, read the WakeUpType
property, after WoL the value should be 5 “LAN Remote”