Saturday, February 22, 2020

Win10 disable devices that wake PC

Open powershell as admin

Enter command: 
powercfg /devicequery wake_armed | ForEach{ powercfg /devicedisablewake $_ }

You will get back: Invalid Parameters -- try "/?" for help

or `Unable to perform operation.  An unexpected error (0x490) has occurred:  Element not found.`

To confirm, enter command: 
powercfg /devicequery wake_armed

You will get back (it means all devices have been disabled): NONE


Source:
You can disable all devices from waking your computer with powershell -Command "powercfg /devicequery wake_armed | ForEach{ powercfg /devicedisablewake $_ }".
In cmd, you can run powercfg /devicequery wake_armed to get a list of the devices that are currently allowed to wake up your computer.

No comments:

Post a Comment