Most useful commands for PowerCFG command line

Useful powercfg commands

Configuration of the power supply or powercfg is a Windows command-line tool that allows you to configure power system settings. This is particularly useful for battery-powered notebooks and will allow you to configure hardware-specific configurations that are not directly available through the user interface. In this article, we review the most useful commands for powercfg.

Useful powercfg commands

powercfg or powercfg.exe can be directly used from the Run prompt or with the help of PowerShell or the command prompt.

Here is the list of commands and options that you can use and which uses GUID which is even more powerful.

  1. Change the power configuration to improve performance
  2. Tweak Basic Feed Settings
  3. Enable / Disable hibernation
  4. Request the password when you wake up the screen
  5. Change the type of diet plan
  6. Set the hard drive timeout
  7. Change the power saving mode of the wireless adapter
  8. Change the sleep time
  9. Define what happens when you close the lid of the laptop
  10. Change the power state of the processor when it is on battery
  11. Set the wait time for the monitor
  12. Change multimedia settings

Use them only if you are an experienced user and master the command line.

1) Set the power configuration on High Performance

powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

2) Adjust the basic settings of the power supply

powercfg -change -hibernate-timeout-ac x  powercfg -change -hibernate-timeout-dc x

Where x is the time in minutes. If you type powercfg -change -hibernate-timeout-ac 5, the computer goes into hibernation within 5 minutes.

3) Disable or disable hibernation

powercfg -hibernate OFF

4) Prompt for the password when you wake up the screen

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 0

(0 = false, 1 = true)

5) Change the type of diet plan

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c fea3413e-7e05-4911-9a71-700331f1c294 245d8541-3943-4422-b025-13a784f679b7 1

(0 = energy saver, 1 = high performance, 2 = balanced)

6) Set the hard drive timeout

powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e 0

7) Change the power saving mode of the wireless adapter

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 12bbebe6-58d6-4636-95bb-3217ef867c1a 0

(0 = perf max, 1 = low energy saving, 2 = average energy saving, 3 = maximum energy saving)

8) Change the sleep timeout

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da x

Where x is the time in minutes.

9) Set what happens when you close the lid of the laptop

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0

(0 = do nothing, 1 = idle, 2 = hibernate, 3 = off)

10) Change the power state of the processor when it is on battery

Use the following options to change the status.

  • 0.1 = energy saver
  • 2,3 = balanced
  • and 4.5 = high performance.

Processor power state

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 68f262a7-f621-4069-b9a5-4874169be23c 4

Minimum state of the processor

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 893dee8e-2bef-41e0-89c6-b55d0929964c 100

Processor performance settings

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 54533251-82be-4824-96c1-47b60b740d00 bbdc3814-18e9-4463-8a55-d197327c45c0 4

11) Set the wait time for the monitor

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e x

Where x is the time in minutes.

12) Change the multimedia settings

powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 03680956-93bc-4294-bba6-4e0f09bb717f 2

(0 = do nothing, 1 = prevent the computer from sleeping, 2 = activate the mode of absence)

So, if you are comfortable with using the GUID, these commands will still be useful. We hope you have found the orders easy to follow.

Source: docs.microsoft.com.

Leave a Reply