Powercfg or powercfg.exe is a command-line utility that is used to manage all Configurable Power system settings. Powercfg is around for many years and it was first introduced in Windows XP SP2 in 2004. Powercfg command allows you to create, edit, and delete power planes without using the control panel. It nearly allows you to manage almost all the aspects of power plans. Mainly it is used to control the hardware-specific configuration that are not configurable through the control panel. You can run powercfg from an elevated command prompt. And you can configure the Power schemes on a per-user basis. You can do many things using powercfg command.
Powercfg command lines use the following syntax.
powercfg /option [arguments] [/?]
Command Lists:
/LIST, /L | Lists all power schemes. |
/QUERY, /Q | Displays the contents of a power scheme. |
/CHANGE, /X | Modifies a setting value in the current power scheme. |
/CHANGENAME | Modifies the name and description of a power scheme. |
/DUPLICATESCHEME | Duplicates a power scheme. |
/DELETE, /D | Deletes a power scheme. |
/DELETESETTING | Deletes a power setting. |
/SETACTIVE, /S | Makes a power scheme active on the system. |
/GETACTIVESCHEME | Retrieves the currently active power scheme. |
/SETACVALUEINDEX | Sets the value associated with a power setting |
while the system is powered by AC power. | |
/SETDCVALUEINDEX | Sets the value associated with a power setting |
while the system is powered by DC power. | |
/IMPORT | Imports all power settings from a file. |
/EXPORT | Exports a power scheme to a file. |
/ALIASES | Displays all aliases and their corresponding GUIDs. |
/GETSECURITYDESCRIP | TOR Gets a security descriptor associated with a specified |
power setting, power scheme, or action. | |
/SETSECURITYDESCRIP | TOR Sets a security descriptor associated with a |
power setting, power scheme, or action. | |
/HIBERNATE, /H | Enables and disables the hibernate feature. |
/AVAILABLESLEEPSTAT | ES, /A Reports the sleep states available on the system. |
/DEVICEQUERY | Returns a list of devices that meet specified criteria. |
/DEVICEENABLEWAKE | Enables a device to wake the system from a sleep state. |
/DEVICEDISABLEWAKE | Disables a device from waking the system from a sleep |
state. | |
/LASTWAKE | Reports information about what woke the system from the |
last sleep transition. | |
/WAKETIMERS | Enumerates active wake timers. |
/REQUESTS | Enumerates application and driver Power Requests. |
/REQUESTSOVERRIDE | Sets a Power Request override for a particular Process, |
Service, or Driver. | |
/ENERGY | Analyzes the system for common energy-efficiency and |
battery life problems. | |
/BATTERYREPORT | Generates a report of battery usage. |
/SLEEPSTUDY | Generates a diagnostic system power transition report. |
/SRUMUTIL | Dumps Energy Estimation data from System Resource Usage |
Monitor (SRUM). | |
/SYSTEMSLEEPDIAGNOSTICS | Generates a diagnostic report of system sleep transitions. |
/SYSTEMPOWERREPORT | Generates a diagnostic system power transition report. |
/POWERTHROTTLING | Control power throttling for an application. |
You can use Powercfg command line tool to manage the list of power settings on your computer.
Create Power Plan with Powercfg
Delete Power Plan
Modify Power plan
Import Power plan
Export Power plan
Enable or Disable power hibernation with powercfg
Switch Power plan
Change When I close the Lid option
Report action woke device
Generate Battery Report
Generate Energy Report
View list of available sleep states
Enable or Disable devices that can wake the system