CMD command Powercfg

Powercfg is a very powerful command for managing and tracking how your

computer uses energy. You can use the command “powercfg /hibernate on” and

“powercfg /hibernate off” to manage hibernation, and you can also use the

command “powercfg /a” to view the power-saving states currently available on

your PC.

Another useful command is “powercfg /devicequery s1_supported” which

displays a list of devices on your computer that support connected standby.

When enabled, these devices can be used to bring your computer out of standby

– even remotely. You can enable this by selecting the device in Device Manager,

opening its properties, going to the Power Management tab and then checking

the “Allow this device to wake the computer” box.


“Powercfg /lastwake” will show you what device last woke your PC from a sleep

state. You can use this command to troubleshoot your PC if it seems to wake 

from sleep at random.