Wake-on-LAN (WOL) functionality is completely broken when shutting down Windows through the Start menu, but works flawlessly when performing a forced shutdown using the physical power button. This behavior clearly indicated that:
- BIOS WOL settings were correct
- Network adapter hardware supported WOL
- Windows power management was preventing proper shutdown
Step 1: Enable PME (Power Management Event)
|
1 2 3 4 |
# Enable PME in the network adapter registry settings # Note: Path may differ - use your network adapter's registry key Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0005" -Name "EnablePME" -Value 1 |
This enables the network adapter to send Power Management Events to wake the system from S5 shutdown state.
Step 2: Change Power Button Action to Shutdown
|
1 2 3 4 |
# Set the Start menu power button to perform Shutdown instead of Sleep powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS UIBUTTON_ACTION 2 powercfg /setactive SCHEME_CURRENT |
This configures the power button in Windows Start menu to perform a true shutdown (S5) instead of entering sleep mode (S3).
Step 3: Disable Hybrid Sleep
|
1 2 3 4 5 |
# Disable Hybrid Sleep for both AC and battery power powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP HYBRIDSLEEP 0 powercfg /setdcvalueindex SCHEME_CURRENT SUB_SLEEP HYBRIDSLEEP 0 powercfg /setactive SCHEME_CURRENT |
This disables Hybrid Sleep to ensure the system enters a clean S5 shutdown state.
