A: If you’re wondering why your machine is always running when you go to it each morning (is the cat jumping on your mouse?), you can quickly see the devices that can wake your machine. Just use the command below:
powercfg -devicequery wake_armed
In the example below, you can see my keyboard, mouse, and network adapter can wake my machine from sleep.
C:\>powercfg -devicequery wake_armed
Microsoft USB Dual Receiver Wireless Keyboard (IntelliType Pro)
Microsoft USB Dual Receiver Wireless Mouse (IntelliPoint)
Realtek PCIe GBE Family Controller
You can change this by opening device manager (devmgmt.msc). Select the Properties of the device, and under the Power Management tab, clear the check box for the option Allow this device to wake the computer (see the screen shot below).
If you need to change it to not wake the machine, open the settings of the task and clear the task box labeled Wake the computer to run this task. Another option is to add your own scheduled task to put the machine back to sleep, perhaps 30 minutes after the other task. This way the actions can still be taken if your machine is turned off, but it doesn’t stay awake once it’s finished (see screen shot below).
To see more FAQs, please go to John Savill's FAQs page on Windows IT Pro.