Power mode via command line?


vsub

Member
Local time
2:57 PM
Posts
87
OS
Windows 11
Is it possible to change this via command line
1741053089181.webp
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI Sword 17 HX
    CPU
    14700HX
    Memory
    16GB
    Graphics Card(s)
    RTX 4070
command prompt as admin:

Code:
powercfg /setactive A1841308-3541-4FAB-BC81-F71556F20B4A  #Power Saver
Code:
powercfg /setactive 381B4222-F694-41F0-9685-FF5BB260DF2E  #Balanced
Code:
powercfg /setactive 8C5E7FDA-E8BF-4A96-9A85-A6E23A8C635C #High Performance

Battery Saver - Change the "0" to any number greater than Zero to enable Battery Saver at the Percentage dictated by the number you set:
Code:
powercfg /setdcvalueindex scheme_current sub_energysaver esbattthreshold 0
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
@dacrone, two of those quoted power plan GUID's are custom to your PC.

If you prefer to use the built-in aliases:
Code:
powercfg /setactive SCHEME_BALANCED
powercfg /setactive SCHEME_MIN
powercfg /setactive SCHEME_MAX

High performance mode is SCHEME_MIN (or minimize power savings).
Low performance mode is SCHEME_MAX (or maximize power savings).

It's counter-intuitive.

To use a custom power plan (like one that shipped with your PC, like HP does), you can list the available GUID's.
Code:
C:\Windows\System32>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (Power saver)
Power Scheme GUID: 12345678-90ab-cdef-1234-567890abcdef  (Made up example)

C:\Windows\System32>powercfg setactive 12345678-90ab-cdef-1234-567890abcdef
 

My Computer

System One

  • OS
    Windows 7
@dacrone, two of those quoted power plan GUID's are custom to your PC.

If you prefer to use the built-in aliases:
Code:
powercfg /setactive SCHEME_BALANCED
powercfg /setactive SCHEME_MIN
powercfg /setactive SCHEME_MAX

High performance mode is SCHEME_MIN (or minimize power savings).
Low performance mode is SCHEME_MAX (or maximize power savings).

It's counter-intuitive.

To use a custom power plan (like one that shipped with your PC, like HP does), you can list the available GUID's.
Code:
C:\Windows\System32>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (Power saver)
Power Scheme GUID: 12345678-90ab-cdef-1234-567890abcdef  (Made up example)

C:\Windows\System32>powercfg setactive 12345678-90ab-cdef-1234-567890abcdef
my mistake. better battery life and best performance were examples from some notes. i copied the wrong portion of the list from the doc. meant to include high performance and power saver. edited my post. thanks for catching that.
 

My Computer

System One

  • OS
    Windows 11 Pro

Latest Support Threads

Back
Top Bottom