powercfg on Windows: power plans, sleep diagnostics and battery reports
powercfg.exe is the command-line front end for the Windows power subsystem. It reads and writes power plans, reports which sleep states the firmware actually offers, names the process that is keeping a machine awake, and generates the battery, energy and…