Powercfg must be run from an elevated command prompt, and, under Windows XP, it requires workstation Administrator or power user rights. Power Schemes are configured on a per-user basis. The most common cause of problems with power saving and hibernation on Windows systems is an incompatible device driver. This can be diagnosed by disabling each device in turn (with powercfg /devicedisablewake). When activating power saving across a local area network, it is important to ensure that software updates, security patches and antivirus updates in particular, are not disrupted. Microsoft recommends to configure its Windows Server Update Services to install updates when workstations are available and Windows Task Scheduler can be set to wake the machine when needed.
02 !Displays the contents of the specified power scheme.
(Optional) Specifies the scheme_name/GUID of the power scheme to display. GUID can be obtained by using the powercfg /l command.
(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.
create !/c[reate] scheme_name
03 !Creates a power scheme with the specified scheme_name.
change !/change settingvalue
04 !Modifies a setting value in the current power scheme.
12 !Sets a value associated with a specified power setting while the computer is powered by DC power.
Specifies a power scheme GUID. Obtained by using the powercfg /l command.
Specifies a subgroup of power setting GUID. Obtained by using the powercfg /q command.
Specifies an individual power settingGUID. Obtained by using the powercfg /q command.
Specifies which of the list of possible values this power setting will be set to.
h !/h[ibernate] [on|off]
13 !Enables or disables the hibernate feature. Hibernate timeout is not supported on all computers.
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
g !/g[lobalpowerflag] [on|off]]
15 !Turn one of the following global power flags on or off:
Turn the battery meter icon in the system tray on/off.
Turns on/off multiple battery display in system Power Meter.
Prompt for password on resuming the system.
Turn on/off wake on ring support.
Turn on/off support for dimming video display on battery power.
b !/b[atteryalarm] [low|critical] [settings]
16 !Configure the battery alarm.
Enable or disable the alarm.
/level [percentage (0 – 100)]
The alarm will be activated when the power level reaches this percentage.
Turns the text notification on or off.
Turns the audible notification on or off.
Specifies the action to take when this alarm goes off. Not all actions are always available.
Force stand by or shutdown even if a program stops responding.
Specifies a program to run. schtasks.exe /change may be used to configure the program.
17 !Reports the sleep states available on the computer. Attempts to report reasons why sleep states are unavailable.
devicequery !/devicequery [query_flags]]
18 !Returns a list of devices that meet the specified flags:
Returns all devices that support waking the computer from a light sleep state.
Returns all devices that support waking the computer from a deeper sleep state.
Returns all devices that support waking the computer from the deepest sleep state.
Returns all devices that support waking the computer from any sleep state.
Lists devices supporting light sleep.
Lists devices supporting deeper sleep.
Lists devices supporting deepest sleep.
Lists devices supporting hibernation.
Lists devices that are user/configurable to wake the computer from a sleep state.
Lists devices that are currently configured to wake the computer from any sleep state.
Returns all devices present in the computer.
Returns a verbose list of devices.
deviceenablewake !/deviceenablewake devicename
19 !Enables the device to wake the computer from a sleep state.
Specifies a device retrieved by using the powercfg /devicequery wake_programmable command.
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. NOTE: No documentation exists to remove a request override entry once entered, however leaving off the request type will do so. powercfg -requestsoverride Caller_typeName (Request left blank to remove entry)
Specifies one of the following caller types: PROCESS, SERVICE, DRIVER. This is obtained by calling the powercfg /requests command.
Specifies the caller name. This is the name returned from calling powercfg /requests command.
Specifies one or more of the following Power Request Types: Display, System, Awaymode *Leave blank to remove an entry.
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.
Specifies the path and filename to store the energy report HTML file (default="energy-report.html").
Formats the report file as XML.
Records system behavior and does not perform analysis. Trace files will be generated in the current path unless the /d parameter is specified.
Specifies the directory to store trace data. May only be used with the /trace parameter.
Specifies the number of seconds to observe system behavior. Default is 60 seconds
25 !7 only
28 !Enumerates the active wake timers. If enabled, the expiration of a wake timer wakes the system from sleep and hibernate states.
29 !Displays Help at the command prompt.
Power scheme GUIDs
The use of GUIDs avoids any problems with internationalisation when applying Power Saving to non-English versions of Windows. The three built-in power schemes have the GUIDs listed below: