Powercfg Command-Line Options
Published: February 29, 2012
Updated: May 31, 2012
Applies To: Windows 8, Windows Server 2012
You can use the powercfg.exe tool to control power schemes (also named power plans) to use the available sleep states, to control the power states of individual devices, and to analyze the system for common energy-efficiency and battery-life problems.
powercfg /COMMAND [ARGUMENTS] [/?]
The following command-line options are available for powercfg.
| Option | Argument | Description | ||
|---|---|---|---|---|
|
-HELP, /? |
|
Displays information about command-line parameters. |
||
|
/LIST, /L |
|
Lists all power schemes. Examples: POWERCFG /LIST |
||
|
/QUERY, /Q |
[<SCHEME_GUID> [<SUB_GUID>]] |
Displays the contents of the specified power scheme. If neither the parameter SCHEME_GUID or SUB_GUID are provided, the settings of the current active power scheme are displayed. If the parameter SUB_GUID is not specified, all settings in the specified power scheme are displayed. Arguments:
Examples: POWERCFG /QUERY POWERCFG /QUERY 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20 |
||
|
/CHANGE, /x |
<SETTING> <VALUE> |
Modifies a setting value in the current power scheme. Arguments:
Examples: POWERCFG /CHANGE monitor-timeout-ac 5 |
||
|
/CHANGENAME |
<SCHEME_GUID> <NAME> [<DESCRIPTION>] |
Modifies the name of a power scheme and optionally its description. Arguments:
Examples: POWERCFG /CHANGENAME 381b4222-f694-41f0-9685-ff5bb260df2e "Customized Balanced" |
||
|
/DUPLICATESCHEME |
<SCHEME_GUID> [<DESTINATION_GUID>] |
Duplicates the specified power scheme. The resulting GUID which represents the new scheme is displayed. Arguments:
Examples: POWERCFG /DUPLICATESCHEME 381b4222-f694-41f0-9685-ff5bb260df2e |
||
|
/DELETE, /D |
<SCHEME_GUID> |
Deletes the power scheme with the specified GUID. Arguments:
Examples: POWERCFG /DELETE 381b4222-f694-41f0-9685-ff5bb260df2e |
||
|
/DELETESETTING |
<SUB_GUID> <SETTING_GUID> |
Deletes a power setting. Arguments:
Examples: POWERCFG /DELETESETTING 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da |
||
|
/SETACTIVE, /S |
<SCHEME_GUID> |
Makes the specified power scheme active on the system. Arguments:
Examples: POWERCFG /SETACTIVE 381b4222-f694-41f0-9685-ff5bb260df2e |
||
|
/GETACTIVESCHEME |
|
Retrieves the currently active power scheme. Examples: POWERCFG /GETACTIVESCHEME |
||
|
/SETACVALUEINDEX |
<SCHEME_GUID> <SUB_GUID> <SETTING_GUID> <SETTING_INDEX> |
Sets the value associated with a specified power setting while the system is powered by AC power. Arguments:
Examples: POWERCFG /SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0 |
||
|
/SETDCVALUEINDEX |
<SCHEME_GUID> <SUB_GUID> <SETTING_GUID> <SETTING_INDEX> |
Sets the value associated with a specified power setting while the system is powered by DC power. Arguments:
Examples: POWERCFG /SETDCVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 300 |
||
|
/IMPORT |
<FILENAME> [<GUID>] |
Imports a power scheme from the specified file. Arguments:
Examples: POWERCFG /IMPORT c:\scheme.pow |
||
|
/EXPORT |
<FILENAME> <GUID> |
Exports a power scheme, represented by the specified GUID, to the specified file. Arguments:
Examples: POWERCFG /EXPORT c:\scheme.pow 381b4222-f694-41f0-9685-ff5bb260df2e |
||
|
/ALIASES |
|
Displays a list of aliases and their corresponding GUIDs. These aliases may be used instead of a GUID in any command. Examples: POWERCFG /ALIASES
|
||
|
/GETSECURITYDESCRIPTOR |
<GUID|ACTION> |
Gets the security descriptor associated with the specified power setting, power scheme, or action. Arguments:
Examples: POWERCFG /GETSECURITYDESCRIPTOR 381b4222-f694-41f0-9685-ff5bb260df2e POWERCFG /GETSECURITYDESCRIPTOR ActionSetActive |
||
|
/SETSECURITYDESCRIPTOR |
<GUID|ACTION> <SDDL> |
Sets a security descriptor associated with the specified power setting, power scheme, or action. Arguments:
Examples: POWERCFG /SETSECURITYDESCRIPTOR 381b4222-f694-41f0-9685-ff5bb260df2e O:BAG:SYD:P(A;CI;KRKW;;;BU)(A;CI;KA;;;BA)(A;CI;KA;;;SY)(A;CI;KA;;;CO) POWERCFG /SETSECURITYDESCRIPTOR ActionSetActive O:BAG:SYD:P(A;CI;KR;;;BU)(A;CI;KA;;;BA)(A;CI;KA;;;SY)(A;CI;KA;;;CO) |
||
|
/HIBERNATE, /H |
{ON | OFF | SIZE<PERCENT_SIZE>} |
Enables or disables the hibernate feature or sets the hiberfile size. Arguments:
Examples: POWERCFG /HIBERNATE OFF POWERCFG /HIBERNATE /SIZE 100 |
||
|
/AVAILABLESLEEPSTATES, /A |
|
Reports the sleep states available on the system. Attempts to report reasons why sleep states are unavailable. Examples: POWERCFG /AVAILABLESLEEPSTATES |
||
|
/DEVICEQUERY |
<QUERYFLAG> |
Returns a list of devices that meet the specified criteria. Arguments:
Examples: POWERCFG /DEVICEQUERY wake_armed |
||
|
/DEVICEENABLEWAKE |
<DEVICENAME> |
Enables the specified device to wake the system from a sleep state. Arguments:
Examples: POWERCFG /DEVICEENABLEWAKE "Microsoft USB IntelliMouse Optical" |
||
|
/DEVICEDISABLEWAKE |
<DEVICENAME> |
Disables the specified device from waking the system from a sleep state. Arguments:
Examples: POWERCFG /DEVICEDISABLEWAKE "Microsoft USB IntelliMouse Optical" |
||
|
/LASTWAKE |
|
Reports information about what woke the system from the last sleep transition. Examples: POWERCFG /LASTWAKE |
||
|
/WAKETIMERS |
|
Enumerates the active wake timers. If enabled, the expiration of a wake timer wakes the system from sleep and hibernate states. Examples: POWERCFG /WAKETIMERS |
||
|
/REQUESTS |
|
Enumerates application and driver Power Requests. Power Requests prevent the computer from automatically powering off the display or entering a low-power sleep mode. Examples: POWERCFG /REQUESTS |
||
|
/REQUESTSOVERRIDE |
[<CALLER_TYPE> <NAME><REQUEST>] |
Sets a Power Request override for a particular process, service, or driver. If no parameters are specified, this command displays the current list of Power Request overrides. Arguments:
Examples: POWERCFG /REQUESTSOVERRIDE PROCESS wmplayer.exe DISPLAY SYSTEM |
||
|
/ENERGY |
[/OUTPUT<FILENAME>] [/XML] [/DURATION<SECONDS>] or /TRACE [/D<FILEPATH>] [/XML] [/DURATION<SECONDS>] |
Analyzes the system for common energy-efficiency and battery-life problems. The ENERGY command should be used when the computer is idle and has no open programs or documents. The ENERGY command generates an HTML report file in the current path. Arguments:
Examples: POWERCFG /ENERGY POWERCFG /ENERGY /OUTPUT "longtrace.html" /DURATION 120 |

Note