Set Windows power states from the command line Use powercfg to set Windows power states from a script or command line. Written on November 26, 2015