Parameter |
Description |
XP |
Other OSs |
0l !/l[ist] |
01 !Lists all power schemes in the current user's environment. |
01 !Yes |
01 !Yes |
q !/q[uery] [scheme_name] (XP)
/q[uery] [Scheme_GUID] [Sub_GUID] |
02 !Displays the contents of the specified power scheme.
scheme_name SCHEME_GUID |
(Optional) Specifies the scheme_name /GUID of the power scheme to display. GUID can be obtained by using the powercfg /l command. |
SUB_GUID |
(Optional) Specifies the GUID of the subgroup to display. Requires a SCHEME_GUID to be provided. If neither SCHEME_GUID or SUB_GUID are provided, the settings of the current user's active power scheme are displayed. If SUB_GUID is not specified, all settings in the specified power scheme are displayed. |
|
02 !Yes |
02 !Yes |
create !/c[reate] scheme_name |
03 !Creates a power scheme with the specified scheme_name . |
03 !Yes |
zz !No |
change !/change setting value /x setting value |
04 !Modifies a setting value in the current power scheme.
setting |
Specifies one of the following settings: ///monitor-timeout-ac minutes
//monitor-timeout-dc minutes
//disk-timeout-ac minutes
//disk-timeout-dc minutes
//standby-timeout-ac minutes
//standby-timeout-dc minutes
//hibernate-timeout-ac minutes
//hibernate-timeout-dc minutes
/processor-throttle-ac throttle
/processor-throttle-dc throttle |
value |
Specifies the value in minutes. |
- AC settings are used when the system is on AC power. DC settings on battery power.
- Setting any value to 0 will set the
timeout=Never
throttle = NONE , CONSTANT , DEGRADE , or ADAPTIVE .
|
|
06 !Yes |
03 !Yes |
changename !/changename GUID PowerSchemeName [scheme_description] |
05 !Modifies the name of a power scheme and, optionally, the scheme description.
Value |
Description |
GUID |
Specifies the GUID of the power scheme |
name |
Specifies the name of the power scheme. |
scheme_description |
Describes the power scheme. |
If the description is omitted, then only the name will be changed. |
|
zz !No |
04 !Yes |
duplicatescheme !/duplicatescheme GUID [DestinationGUID] |
06 !Duplicates the specified power scheme. The resulting GUID which represents the new scheme will be displayed.
Value |
Description |
GUID |
Specifies a scheme GUID . Obtained by using the powercfg /l command. |
DestinationGUID |
Specifies the GUID where the scheme will be copied. |
If <DestinationGUID> is omitted, then a new GUID will be created for the duplicated scheme. |
|
zz !No |
05 !Yes |
d !/d[elete] scheme_name
/d[elete] GUID |
7 !Deletes the power scheme with the specified GUID.
scheme_name GUID |
Specifies the scheme_name /GUID of the scheme. GUID can be obtained by using the powercfg /l command. |
|
04 !Yes |
06 !Yes |
deletesetting !/deletesetting Sub_GUID Setting_GUID |
8 !Deletes a power setting.
Value |
Description |
Sub_GUID |
Specifies the subgroup GUID . |
Setting_GUID |
Specifies the power setting GUID . |
|
zz !No |
07 !Yes |
s !/s[etactive] scheme_name -s[etactive] Scheme_GUID |
9 !Makes the specified power scheme active on the computer.
scheme_name Scheme_GUID |
Specifies the scheme GUID . |
|
05 !Yes |
08 !Yes |
getactivescheme !/getactivescheme |
10 !Retrieves the currently active power scheme. |
zz !No |
09 !Yes |
setacvalueindex !/setacvalueindex Scheme_GUID Sub_GUID Setting_GUID SettingIndex |
11 !Sets a value associated with a specified power setting while the computer is powered by AC power.
Value |
Description |
Scheme_GUID |
Specifies a power scheme GUID. Obtained by using the powercfg /l command. |
Sub_GUID |
Specifies a subgroup of power setting GUID. Obtained by using the powercfg /q command. |
Setting_GUID |
Specifies an individual power setting GUID. Obtained by using the powercfg /q command. |
SettingIndex' |
Specifies which of the list of possible values this power setting will be set to. |
Use the /l and /q options to discover the GUID s |
|
zz !No |
10 !Yes |
setdcvalueindex !/setdcvalueindex Scheme_GUID Sub_GUID Setting_GUID SettingIndex |
12 !Sets a value associated with a specified power setting while the computer is powered by DC power.
Value |
Description |
Scheme_GUID |
Specifies a power scheme GUID. Obtained by using the powercfg /l command. |
Sub_GUID |
Specifies a subgroup of power setting GUID . Obtained by using the powercfg /q command. |
Setting_GUID |
Specifies an individual power settingGUID . Obtained by using the powercfg /q command. |
SettingIndex |
Specifies which of the list of possible values this power setting will be set to. |
|
zz !No |
11 !Yes |
h !/h[ibernate] [on|off] |
13 !Enables or disables the hibernate feature. Hibernate timeout is not supported on all computers. |
09 !Yes |
12 !Yes |
n !/n[umerical] |
14 !Specify the power scheme to be operated upon with a numerical identifier. This switch allows a number to be used in place of the scheme_name in the following commands: /QUERY , /DELETE , /SETACTIVE , /CHANGE , /EXPORT , and /IMPORT |
10 !Yes |
zz !No |
g !/g[lobalpowerflag] [on|off]] |
15 !Turn one of the following global power flags on or off:
BatteryIcon |
Turn the battery meter icon in the system tray on/off. |
MultiBattery |
Turns on/off multiple battery display in system Power Meter. |
ResumePassword |
Prompt for password on resuming the system. |
WakeOnRing |
Turn on/off wake on ring support. |
VideoDim |
Turn on/off support for dimming video display on battery power. |
|
11 !Yes |
zz !No |
b !/b[atteryalarm] [low|critical] [settings] |
16 !Configure the battery alarm. Settings:
/activate [on|off] |
Enable or disable the alarm. |
/level [percentage (0 – 100)] |
The alarm will be activated when the power level reaches this percentage. |
/text [on|off] |
Turns the text notification on or off. |
/sound [on|off] |
Turns the audible notification on or off. |
/action [none|shutdown|hibernate|standby] |
Specifies the action to take when this alarm goes off. Not all actions are always available. |
/forceaction [on|off] |
Force stand by or shutdown even if a program stops responding. |
/program [on|off] |
Specifies a program to run. schtasks.exe /change may be used to configure the program. |
|
13 !Yes |
zz !No |
a !/a[vailablesleepstates] |
17 !Reports the sleep states available on the computer. Attempts to report reasons why sleep states are unavailable. |
10 !Yes |
12 !Yes |
devicequery !/devicequery [query_flags]] |
18 !Returns a list of devices that meet the specified flags:
wake_from_S1_supported |
Returns all devices that support waking the computer from a light sleep state. |
wake_from_S2_supported |
Returns all devices that support waking the computer from a deeper sleep state. |
wake_from_S3_supported |
Returns all devices that support waking the computer from the deepest sleep state. |
wake_from_any |
Returns all devices that support waking the computer from any sleep state. |
S1_supported |
Lists devices supporting light sleep. |
S2_supported |
Lists devices supporting deeper sleep. |
S3_supported |
Lists devices supporting deepest sleep. |
S4_supported |
Lists devices supporting hibernation. |
wake_programmable |
Lists devices that are user/configurable to wake the computer from a sleep state. |
wake_armed |
Lists devices that are currently configured to wake the computer from any sleep state. |
all_devices |
Returns all devices present in the computer. |
all_devices_verbose |
Returns a verbose list of devices. |
|
12 !Yes |
14 !Yes |
deviceenablewake !/deviceenablewake devicename |
19 !Enables the device to wake the computer from a sleep state.
devicename |
Specifies a device retrieved by using the powercfg /devicequery wake_programmable command. |
|
14 !Yes |
15 !Yes |
devicedisablewake !/devicedisablewake <devicename> |
20 !Disables the device from waking the computer from a sleep state.
devicename |
Specifies a device retrieved by using the powercfg /devicequery wake_armed command. |
|
15 !Yes |
16 !Yes |
import !/import scheme_name [/FILE filename] -import filename [GUID] |
20 !Imports all power settings from the specified file.
filename |
Specifies a fully qualified path to a file generated by using the powercfg /export command-line option. |
'GUID |
(optional) Represents the settings loaded into a power scheme. If not supplied, Powercfg will generate and use a new GUID |
|
08 !Yes |
17 !Yes |
export !/export scheme_name [/FILE filename] -export filename [GUID] |
21 !Exports a power scheme, represented by the specified GUID, to the specified file.
filename |
Specifies a fully qualified path to a destination file. |
GUID |
Specifies a power scheme GUID. Obtained by using the /l command-line option. |
|
07 !Yes |
18 !Yes |
lastwake !/lastwake |
21 !Reports information about the event that woke the computer from the last sleep transition. |
zz !No |
19 !Yes |
aliases !/aliases |
22 !Displays all aliases and their corresponding GUIDs. The user may use these aliases in place of any GUID at the command prompt |
zz !No |
20 !Yes |
setsecruitydescriptor !/setsecruitydescriptor [GUID|Action] SDDL |
23 !Sets a security descriptor associated with a specified power setting, power scheme, or action.
GUID |
Specifies a power scheme or a power setting GUID. |
Action |
Specifies one of the following strings: ActionSetActive , ActionCreate , ActionDefault |
SDDL |
Specifies a valid security descriptor string in SDD format. Use powercfg /getsecuritydescriptor to see an example SDDL STRING. |
|
zz !No |
21 !Yes |
getsecuritydescriptor !/getsecuritydescriptor [GUID|<Action>] |
24 !Gets a security descriptor associated with a specified power setting, power scheme, or action.
GUID |
Specifies a power scheme or a power setting GUID. |
<Action> |
Specifies one of the following strings: ActionSetActive , ActionCreate , ActionDefault |
|
zz !No |
22 !Yes |
requests !/requests |
25 !Enumerate application and driver Power Requests. Power requests prevent the computer from automatically powering off the display or entering a low-power sleep mode. |
zz !No |
23 !Yes |
requestsoverride !/requestsoverride Caller_type Name Request |
26 !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.
Value |
Description |
Caller_type |
Specifies one of the following caller types: PROCESS, SERVICE, DRIVER. This is obtained by calling the powercfg /requests command. |
Name |
Specifies the caller name. This is the name returned from calling powercfg /requests command. |
Request |
Specifies one or more of the following Power Request Types: Display , System , Awaymode . |
|
zz !No |
24 !Yes |
energy !/energy |
27 !Analyzes the system for common energy-efficiency and battery life problems. The /energy command should be used when the computer is idle and with no open programs or documents. The /energy command will generate an HTML report file in the current path. Windows7 only.
{{| |
Value |
Description |
/output filename |
Specifies the path and filename to store the energy report HTML file (default="energy-report.html"). |
/xml |
Formats the report file as XML. |
/trace |
Records system behavior and does not perform analysis. Trace files will be generated in the current path unless the /d parameter is specified. |
/d filepath |
Specifies the directory to store trace data. May only be used with the /trace parameter. |
/duration <seconds> |
Specifies the number of seconds to observe system behavior. Default is 60 seconds |