Q. How can I view devices that can wake a machine using a command prompt?
A. To view all devices that can wake a machine use the following command:
powercfg /devicequery wake_armed
To disable a device from being able to wake the machine use the following example where I disable my mouse from being able to wake my machine:
powercfg /devicedisablewake "Logitech HID-compliant Unifying Mouse"