An editor has nominated this article for deletion. You are welcome to participate in the deletion discussion , which will decide whether or not to retain it. |
powercfg (executable name powercfg.exe
) is a command-line utility that is used from an elevated Windows Command Prompt to control all configurable power system settings, including hardware-specific configurations that are not configurable through the Control Panel, on a per-user basis. It was first introduced by Microsoft in Windows XP SP2 in 2004. [1] [2]
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 that its Windows Server Update Services be configured to install updates when workstations are available and Windows Task Scheduler can be set to wake the machine when needed.
POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name | /SETACTIVE name | /CHANGE name settings | /HIBERNATE {ON|OFF} | /NUMERICAL int | /EXPORT name [/FILE filename] | /IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag | /BATTERYALARM {LOW|CRITICAL} [settings] | /DEVICEQUERY flagquery | /DEVICEENABLEWAKE devicename | /DEVICEDISABLEWAKE devicename | /?]
powercfg [/l[ist]] [/q[uery] [Scheme_GUID] [Sub_GUID]] ] [/x setting value] [/changename GUID name [scheme_description]] [/duplicatescheme GUID [DestinationGUID]] [/d[elete] GUID] [/deletesetting Sub_GUID Setting_GUID] [/s[etactive] Scheme_GUID] [/getactivescheme] [/setacvalueindex Scheme_GUID Sub_GUID Setting_GUID SettingIndex] [/setdcvalueindex Scheme_GUID Sub_GUID Setting_GUID SettingIndex] [/h[ibernate] [on|off]] [/a[vailablesleepstates]] [/devicequery query_flags] [/deviceenablewake devicename] [/devicedisablewake devicename] [/import filename [GUID]] [/export filename [GUID]] [/lastwake] [/aliases] [/setsecuritydescriptor [GUID|Action] SDDL] [/getsecuritydescriptor [GUID|Action]] [/requests] [/requestsoverride Caller_type Name Request] [/energy [/output filename] [/xml] [/duration seconds] [/trace [/d filepath]] [/waketimers] [/?]
Parameter | Description | OS | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
XP | Other | ||||||||||||||||||||||||||
/l[ist] | Lists all power schemes in the current user's environment. | Yes | Yes | ||||||||||||||||||||||||
/q[uery] [scheme_name] (XP)/q[uery] [Scheme_GUID] [Sub_GUID] | Displays the contents of the specified power scheme.
| Yes | Yes | ||||||||||||||||||||||||
/c[reate] scheme_name | Creates a power scheme with the specified scheme_name . | Yes | No | ||||||||||||||||||||||||
/change settingvalue | Modifies a setting value in the current power scheme.
| Yes | Yes | ||||||||||||||||||||||||
/changename GUIDPowerSchemeName [scheme_description] | Modifies the name of a power scheme and, optionally, the scheme description.
| No | Yes | ||||||||||||||||||||||||
/duplicatescheme GUID [DestinationGUID] | Duplicates the specified power scheme. The resulting GUID which represents the new scheme will be displayed.
| No | Yes | ||||||||||||||||||||||||
/d[elete] scheme_name /d[elete] GUID | Deletes the power scheme with the specified GUID.
| Yes | Yes | ||||||||||||||||||||||||
/deletesetting Sub_GUIDSetting_GUID | Deletes a power setting.
| No | Yes | ||||||||||||||||||||||||
/s[etactive] scheme_name | Makes the specified power scheme active on the computer.
| Yes | Yes | ||||||||||||||||||||||||
/getactivescheme | Retrieves the currently active power scheme. | No | Yes | ||||||||||||||||||||||||
/setacvalueindex Scheme_GUIDSub_GUIDSetting_GUIDSettingIndex | Sets a value associated with a specified power setting while the computer is powered by AC power.
| No | Yes | ||||||||||||||||||||||||
/setdcvalueindex Scheme_GUIDSub_GUIDSetting_GUIDSettingIndex | Sets a value associated with a specified power setting while the computer is powered by DC power.
| No | Yes | ||||||||||||||||||||||||
/h[ibernate] [on|off] | Enables or disables the hibernate feature. Hibernate timeout is not supported on all computers. | Yes | Yes | ||||||||||||||||||||||||
/n[umerical] | 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 | Yes | No | ||||||||||||||||||||||||
/g[lobalpowerflag] [on|off]] | Turn one of the following global power flags on or off:
| Yes | No | ||||||||||||||||||||||||
/b[atteryalarm] [low|critical] [settings] | Configure the battery alarm. Settings:
| Yes | No | ||||||||||||||||||||||||
/a[vailablesleepstates] | Reports the sleep states available on the computer. Attempts to report reasons why sleep states are unavailable. | Yes | Yes | ||||||||||||||||||||||||
/devicequery [query_flags]] | Returns a list of devices that meet the specified flags:
| Yes | Yes | ||||||||||||||||||||||||
/deviceenablewake devicename | Enables the device to wake the computer from a sleep state.
| Yes | Yes | ||||||||||||||||||||||||
/devicedisablewake <devicename> | Disables the device from waking the computer from a sleep state.
| Yes | Yes | ||||||||||||||||||||||||
/import scheme_name [/FILE filename] | Imports all power settings from the specified file.
| Yes | Yes | ||||||||||||||||||||||||
/export scheme_name [/FILE filename] | Exports a power scheme, represented by the specified GUID, to the specified file.
| Yes | Yes | ||||||||||||||||||||||||
/lastwake | Reports information about the event that woke the computer from the last sleep transition. | No | Yes | ||||||||||||||||||||||||
/aliases | Displays all aliases and their corresponding GUIDs. The user may use these aliases in place of any GUID at the command prompt | No | Yes | ||||||||||||||||||||||||
/setsecruitydescriptor [GUID|Action] SDDL | Sets a security descriptor associated with a specified power setting, power scheme, or action.
| No | Yes | ||||||||||||||||||||||||
/getsecuritydescriptor [GUID|<Action>] | Gets a security descriptor associated with a specified power setting, power scheme, or action.
| No | Yes | ||||||||||||||||||||||||
/requests | Enumerate application and driver Power Requests. Power requests prevent the computer from automatically powering off the display or entering a low-power sleep mode. | No | Yes | ||||||||||||||||||||||||
/requestsoverride Caller_typeNameRequest | 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)
| No | Yes | ||||||||||||||||||||||||
/energy | 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. Windows 7 and certain Windows 10 Insider builds only.
| No | 7 only | ||||||||||||||||||||||||
/waketimers | Enumerates the active wake timers. If enabled, the expiration of a wake timer wakes the system from sleep and hibernate states. | No | Yes | ||||||||||||||||||||||||
/help | Displays Help at the command prompt. | Yes | Yes |
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 aliases listed below, which can be used instead of the GUIDs:
SCHEME_MAX
= Power saver (Max power saving)SCHEME_BALANCED
= Balanced (Typical)SCHEME_MIN
= High performance (Min power saving)The other GUIDs have aliases as well.
Lists all power schemes
powercfg /l
List all Aliases
powercfg -aliases
Retrieve the currently active power scheme
powercfg -getactivescheme
Set the Monitor and disc timeouts for the current Power saver scheme
powercfg -Change -monitor-timeout-ac 20 powercfg -Change -disk-timeout-ac 30
Enable the mouse to wake from sleep
powercfg -deviceEnableWake "Microsoft USB IntelliMouse Explorer"
Set the 'Power saver' scheme
powercfg -SETACTIVE SCHEME_MAX
Create a Custom Power scheme and set it as active
Set_Custom_Power=B1234567-SS64-SS64-SS64-F00000111AAA powercfg -DUPLICATESCHEME SCHEME_MAX %_Custom_Power% powercfg -CHANGENAME %_Custom_Power%"SS64 Power Scheme " powercfg -SETACTIVE %_Custom_Power%
Disable the sleep button (for the users current power scheme)
For/f"tokens=2 delims=:("%%G in('powercfg -getActiveScheme')do( powercfg -setAcValueIndex %%G sub_buttons sButtonAction 0 powercfg -setActive %%G )
Disable the sleep button (for all available power schemes)
For/f"skip=2 tokens=2,4 delims=:()"%%G in('powercfg -list')do( powercfg -setAcValueIndex %%G sub_buttons sButtonAction 0 if"%%H"==" *" powercfg -setActive %%G )
NTLDR is the boot loader for all releases of Windows NT operating system from 1993 with the release of Windows NT 3.1 up until Windows XP and Windows Server 2003. From Windows Vista onwards it was replaced by the BOOTMGR bootloader. NTLDR is typically run from the primary storage device, but it can also run from portable storage devices such as a CD-ROM, USB flash drive, or floppy disk. NTLDR can also load a non NT-based operating system given the appropriate boot sector in a file.
File Explorer, previously known as Windows Explorer, is a file manager application and default desktop environment that is included with releases of the Microsoft Windows operating system from Windows 95 onwards. It provides a graphical user interface for accessing the file systems, as well as user interface elements such as the taskbar and desktop.
The taskbar is a graphical user interface element that has been part of Microsoft Windows since Windows 95, displaying and facilitating switching between running programs. The taskbar and the associated Start Menu were created and named in 1993 by Daniel Oran, a program manager at Microsoft who had previously collaborated on great ape language research with the behavioral psychologist B.F. Skinner at Harvard.
The Windows key is a keyboard key which was originally introduced on Microsoft's Natural Keyboard in 1994. Windows 95 used it to bring up the start menu and it then became a standard key on PC keyboards. On computers running the Microsoft Windows operating system, Ctrl+Esc performs the same function, in case the keyboard lacks this key.
Group Policy is a feature of the Microsoft Windows NT family of operating systems that controls the working environment of user accounts and computer accounts. Group Policy provides centralized management and configuration of operating systems, applications, and users' settings in an Active Directory environment. A set of Group Policy configurations is called a Group Policy Object (GPO). A version of Group Policy called Local Group Policy allows Group Policy Object management without Active Directory on standalone computers.
Microsoft Office XP is an office suite which was officially revealed in July 2000 by Microsoft for the Windows operating system. Office XP was released to manufacturing on March 5, 2001, and was later made available to retail on May 31, 2001. A Mac OS X equivalent, Microsoft Office v. X was released on November 19, 2001.
AutoRun and the companion feature AutoPlay are components of the Microsoft Windows operating system that dictate what actions the system takes when a drive is mounted.
In computing, a file shortcut is a handle in a user interface that allows the user to find a file or resource located in a different directory or folder from the place where the shortcut is located. Similarly, an Internet shortcut allows the user to open a page, file or resource located at a remote Internet location or Web site.
System Restore is a feature in Microsoft Windows that allows the user to revert their computer's state to that of a previous point in time, which can be used to recover from system malfunctions or other problems. First included in Windows Me, it has been included in all following desktop versions of Windows released since, excluding Windows Server. In Windows 10, System Restore is turned off by default and must be enabled by users in order to function. This does not affect personal files such as documents, music, pictures, and videos.
The Start menu is a graphical user interface element that has been part of Microsoft Windows since Windows 95, providing a means of opening programs and performing other functions in the Windows shell. The Start menu, and the Taskbar on which it appears, were created and named in 1993 by Daniel Oran, a program manager at Microsoft who had previously collaborated on great ape language research with the behavioral psychologist B.F. Skinner at Harvard.
Enhanced SpeedStep is a series of dynamic frequency scaling technologies built into some Intel's microprocessors that allow the clock speed of the processor to be dynamically changed by software. This allows the processor to meet the instantaneous performance needs of the operation being performed, while minimizing power draw and heat generation. EIST was introduced in several Prescott 6 series in the first quarter of 2005, namely the Pentium 4 660. Intel Speed Shift Technology (SST) was introduced in Intel Skylake Processor.
In computing, SUBST
is a command on the DOS, IBM OS/2, Microsoft Windows and ReactOS operating systems used for substituting paths on physical and logical drives as virtual drives.
As the next version of Windows NT after Windows 2000, as well as the successor to Windows Me, Windows XP introduced many new features but it also removed some others.
Compared with previous versions of Microsoft Windows, features new to Windows Vista are numerous, covering most aspects of the operating system, including additional management features, new aspects of security and safety, new I/O technologies, new networking features, and new technical features. Windows Vista also removed some others.
My Documents is the commonly recognized name of a special folder in Microsoft Windows This folder is supposed to be a personal area where users store their personal non-shared documents. However, many software developers have ignored this convention and as a result, this folder has become a dumping ground for the application data such as files containing settings and saved games. Users cannot delete, move or organize these files without causing unwanted behavior in their software.
NTFS links are the abstraction used in the NTFS file system—the default file system for all Microsoft Windows versions belonging to the Windows NT family—to associate pathnames and certain kinds of metadata, with entries in the NTFS Master File Table (MFT). NTFS broadly adopts a pattern akin to typical Unix file systems in the way it stores and references file data and metadata; the most significant difference is that in NTFS, the MFT "takes the place of" inodes, fulfilling most of the functions which inodes fulfill in a typical Unix filesystem.
In computing, choice
is a command that allows for batch files to prompt the user to select one item from a set of single-character choices. It is available in a number of operating system command-line shells.
Some of the new features included in Windows 7 are advancements in touch, speech and handwriting recognition, support for virtual hard disks, support for additional file formats, improved performance on multi-core processors, improved boot performance, and kernel improvements.
In computing, ftype
is a command-line utility on Microsoft Windows that is used to display or change the link between a file type and an executable program.