- Powercfg allows you to manage and customize all aspects of power in Windows across the line of commands.
- Detailed reports can be generated on battery life, energy efficiency, and devices that affect power consumption.
- Includes options to automate and optimize energy settings in both home and business environments.
If you are one of those who seek Get the most out of your computer's energy control or you have simply encountered battery, suspension or hibernation problems in Windows, you will surely be interested in knowing the powercfg command in depth. This powerful utility built into the OS Windows lets you manage all aspects of energy consumption, from power plans to more advanced reports on battery and device status.
In this article you will find a clear, detailed and up-to-date explanation on how to use powercfg, what options exist, what each parameter is for and how you can get the most out of it on both computers portable as well as on the desktop. You'll also discover practical examples with commands you can copy and paste, as well as little-known details geared toward both advanced users and those simply looking to troubleshoot specific energy problems.
What is powercfg and what is it used for?
Powercfg, whose full name is powercfg.exe, is a command line utility included in Windows designed to give users the maximum control over power settings of your devices. Thanks to this tool, it is possible to modify, analyze and solve all kinds of issues related to the Power plans, sleep, hibernation, and energy behavior of connected devices.
While the classic graphical interface of the Power Options (powercfg.cpl) of the Control Panel gives us access to the most important functions, powercfg It allows you to delve into advanced settings and obtain information and adjustments that simply aren't available from the standard panel. This is especially useful for laptops, where battery life is critical, as well as for troubleshooting sleep, hibernation, and power consumption issues on any type of computer.

How to run powercfg on Windows
To start working with powercfg, you just have to open a window symbol of the system (CMD) or PowerShell in administrator mode, as some functions require elevated permissions. On the command line, simply type powercfg followed by the desired option, for example:
powercfg /list
From that moment on, you have access to a huge variety of functions, so many that there are even commands that generate help breaking down all the available ones. If you ever get lost, you can enter powercfg /? to see the complete list of parameters and their description.
Main parameters and options of powercfg
The powercfg command is very versatile. It can handle everything from basic power plan management to generating detailed reports on battery status or devices that interfere with computer sleep. Here's a compilation of the commands. most used and useful parameters:
- / list: Lists all power plans available on the system.
- /query: Displays the contents of a specific power plan; ideal for reviewing the active settings.
- /setactive: Allows you to activate a specific power plan.
- /change: Modifies certain values of the current power plan, such as There monitor, disk, or hibernation standby.
- /delete: Removes a specific power plan by its GUID.
- /hibernate: Enables or disables the hibernation feature. It also allows you to define the associated file size.
- /energy: Analyzes energy efficiency and generates a comprehensive report in HTML format.
- /batteryreport: Create a detailed report on laptop battery usage and status.
- /devicequery: Displays devices that meet certain criteria, such as the ability to wake the computer from sleep.
- /lastwake: : Reports on the cause that brought the team out of suspension for the last time.
- / requests: Lists applications, services or drivers that prevent the system from going into sleep mode.
- /requestsoverride: Allows you to set exceptions to the requests detected in the previous command.
- /sleepstudy: Generates a report on the efficiency and use of modern sleep modes.
- /srumutil, /systemsleepdiagnostics, /systempowerreport: Advanced tools for energy diagnosis and professional monitoring.
Each of these parameters can have additional arguments or variants with shortened names (for example, /L as a shortcut for /list). Most commands work with the GUID (unique identifiers) for each plan or device, which are easily obtained by running basic commands.
Energy plan management
One of the most used functions of powercfg is the management of energy schemesWith powercfg, you can freely list, activate, modify, and delete plans. For example:
powercfg /list: You will see all the plans created and the one that is active.powercfg /setactive GUID: Changes the active plan to the specified one.powercfg /delete GUID: Delete the plan you want, useful for cleaning up old settings.powercfg /changename GUID "Nuevo Nombre": Change the name and description of the plan.powercfg /duplicatescheme GUID: Duplicate a schematic for testing without losing previous configuration.
Remember that for any action that requires a GUID, you can always obtain it with powercfg /list, as it appears next to each plan.
Customizing and adjusting power settings
Powercfg goes far beyond activating or listing plans. It allows you to configure every aspect, such as the Screen off time, disk, sleep, hibernation, or power button and lid close actions. For example: uterine
powercfg /change monitor-timeout-ac 5: The screen will turn off after 5 minutes when the device is plugged in.powercfg /change disk-timeout-dc 10: The drive will turn off after 10 minutes in battery mode.powercfg /change standby-timeout-ac 20: The system goes into sleep mode after 20 minutes of inactivity connected to the network.powercfg /change hibernate-timeout-dc 30: It will hibernate after 30 minutes without power.
Additionally, it is possible to adjust advanced parameters using specific configuration GUIDs or modify the values associated with each configuration with the commands setacvalueindex (when plugged in) and setdcvalueindex (on battery). This flexibility makes powercfg a tool capable of adapting to any energy need.

Sleep and hibernation states
One of the most common headaches on laptops and desktops is managing sleep and hibernation modes. Powercfg not only allows you to enable or disable these features, but also informs you about the sleep modes supported by your hardware and helps identify reasons why your computer may not go into sleep or hibernation properly.
powercfg /a: Shows you the sleep states (S1, S2, S3, S4) that your computer supports, along with the reasons why some may not be available.powercfg /hibernate onooff: Turns hibernation on or off.powercfg /hibernate /size 80: Defines the hibernation file size as a percentage of RAM.powercfg /hibernate /type reduced: Select a hibernation file type optimized for hiberboot.
Identification and control of devices that affect energy savings
Often, a device prevents your computer from going to sleep or wakes it up at undesired times. With powercfg, you can find out which hardware exhibits this behavior and decide whether to allow or disable it to save power or avoid inconvenience.
powercfg /devicequery wake_armed: Lists the devices currently configured to wake the PC.powercfg /deviceenableawake "Nombre del dispositivo": Allows a specific device to wake the computer from sleep.powercfg /devicedisablewake "Nombre del dispositivo": Remove that capability from any problematic device.
Also with /lastwake you can find out exactly who was responsible for the last unexpected revival, and with /devicequery You can check the compatibility of the different components with the different energy saving states.
Advanced Diagnostics: Energy, Battery, and Sleep Study Reports
Powercfg stands out for its commands oriented to detailed analysis the device's energy performance and battery life. Among the most notable are:
- /energy: Runs a full scan (usually takes 60 seconds) and produces an HTML report with all energy efficiency-related issues it detects: problematic drivers, conflicting configurations, devices that prevent energy savings, etc.
- /batteryreport: Ideal for laptops, this command generates a detailed historical report on your battery: charge cycles, maximum capacity, degradation with use, charge and discharge history, usage patterns, etc.
- /sleepstudy: Analyzes modern standby behavior, detecting inefficiencies or activation/deactivation issues over the past few days. This is very useful for computers using Modern Standby (S0).
- / requests: Allows you to know which processes, drivers or services are holding up your computer and preventing it from entering energy saving mode.
- /requestsoverride: Allows exceptions to be applied to ignore processes or services that would normally block suspension.
- /systemsleepdiagnostics y /systempowerreport: Generate comprehensive diagnostic reports on power transitions and periods of inactivity, useful for administrators and advanced users.
All these reports are usually saved in the current system folder and can be opened in any Web navigator for easy viewing.

Advanced Use: Overlay Schemes and PPM Profiles
In recent versions of Windows, powercfg has included support for overlapping power schemes and PPM profiles, allowing for even greater customization, especially on modern, professional computers. Users can now fine-tune performance and power-saving parameters in more granular detail, both for traditional power plans and new overlay schemes, especially for processors and graphics.
powercfg /q overlay_scheme_alias subgroup_alias setting_alias: Query the configuration of an overlay scheme.powercfg /setacvalueindex overlay_scheme_alias subgroup_alias setting_alias value: Modifies parameters when the device is connected.powercfg /listprofileso/lp: Lists PPM profiles for efficient processor management.
Additionally, administrators and advanced users can generate power provisioning XML files to automate configurations, which is very useful in enterprise environments or for IT technicians.
Automation and scripts
For those who want to save time or apply settings on a recurring basis, powercfg supports batch files (.bat), so you can create your own scripts with the commands you need. Just write the commands line by line in Notepad, save the file as a .bat, and when you run it, all your energy instructions will be automatically applied, changing plans, activating hibernation, generating reports, etc.
You can even customize the desktop shortcut to these scripts so you always have them handy, and you can even easily change their icon from the shortcut properties.
Practical examples of powercfg commands
Below you have a selection of ready-to-use commands that resolve the most common doubts and needs:
- Know the supported sleep modes:
powercfg /a - Enable hibernation:
powercfg /hibernate on - Disable hibernation:
powercfg /hibernate off - Set the sleep time while connected to power:
powercfg /change hibernate-timeout-ac 30 - Generate an energy report:
powercfg /energy - See the list of energy plans:
powercfg /list - Activate a specific plan (replace GUID with the one you get with /list):
powercfg /setactive GUID - Check the reason why the computer does not go into sleep mode:
powercfg /requests - Identify which device has reactivated the system:
powercfg /lastwake - Learn about devices that support different sleep states:
powercfg /devicequery wake_from_S3_supported - Generate a detailed battery status report:
powercfg /batteryreport
These examples cover the most common needs, but remember that powercfg has many more options to adapt to specific scenarios.
Powercfg and power settings on business and professional devices
In professional environments, especially where Windows images are deployed or many computers are managed, it is common to use powercfg together with Windows Configuration Designer to create custom provisioning packages. Here, powercfg is able to generate XML files with all the device's power settings, which can then be applied en masse across the organization.
This allows administrators to control every detail of power behavior through rules, from sleep and hibernation actions to battery thresholds and policies for specific devices.
Thanks to the generation of reports and diagnostics, it's easy to anticipate and resolve issues before they become a problem for users, optimizing overall energy consumption in the process.
Finally, it's important to note that some advanced functions require administrator permissions. To ensure all commands execute correctly, it's recommended to open the CMD or PowerShell window "as administrator."
The use of powercfg It has established itself as an essential tool for anyone who wants to fully control how Windows manages energy, both at home and at work: diagnostics, advanced settings, detailed reports, automation, and much more are just a few commands away.
Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.
