Power mode via command line?


vsub

Member
Local time
6:37 AM
Posts
72
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 DED574B5-45A0-4F42-8737-46345C09C238  #Best Performance
Code:
powercfg /setactive 381B4222-F694-41F0-9685-FF5BB260DF2E  #Balanced
Code:
powercfg /setactive 961CC777-2547-4F9D-8174-7D86181b8A7A #Better Battery Life

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
 

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

Latest Support Threads

Back
Top Bottom