How to turn on battery saver from command line?


  1. Posts : 24
    Always latest Windows 10
       #1

    How to turn on battery saver from command line?


    Hi All

    anybody has a clue how to turn on battery saver in Windows 10 via command line?

    Thanks.
      My Computer


  2. Posts : 5,330
    Windows 11 Pro 64-bit
       #2

    You can with this command: powercfg.exe /setactive a1841308-3541-4fab-bc81-f71556f20b4a
      My Computer


  3. Posts : 16,958
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    Freebooter - I do not have any power scheme with that GUID on my computer. Denis
      My Computer


  4. Posts : 5,330
    Windows 11 Pro 64-bit
       #4

    Try3 said:
    Freebooter - I do not have any power scheme with that GUID on my computer. Denis
    These are all the power options:


    Code:
    "Power Saver"
    powercfg.exe /setactive a1841308-3541-4fab-bc81-f71556f20b4a
    
    
    "Balanced"
    powercfg.exe /setactive 381b4222-f694-41f0-9685-ff5bb260df2e
    
    
    "High Performance"
    powercfg.exe /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
    
    
    "Ultimate Performance"
    powercfg.exe /setactive e9a42b02-d5df-448d-aa00-03f14749eb61
      My Computer


  5. Posts : 16,958
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    You're referring to Power saver then. I did not realise. I've checked an older Windows 10 computer and can see that Power saver did once exist on it [I must have deleted it from this one when I first received it yet failed to note it in my installations log].

    But the OP did not ask about the Power saver power scheme. The OP asked about Settings, System, Battery - Battery saver.

    Denis
      My Computer


  6. Posts : 6,348
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #6

    Battery saver is a battery charge controller to avoid charging higher than 50 or 80%.
    As it's a hardware controller, normally it is specific driver from the laptop manufacturer.
    You have to launch a battery saver application and set the desired charge level.
    To create a batch file to change the set point, you must know where is the set point stored.
      My Computers


  7. Posts : 16,958
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    4k3or3et said:
    anybody has a clue how to turn on battery saver in Windows 10 via command line?
    We need your confirmation of what you were asking about.

    Denis
      My Computer


  8. Posts : 24
    Always latest Windows 10
    Thread Starter
       #8

    Try3 said:
    We need your confirmation of what you were asking about.

    Denis
    How to turn on battery saver from command line?-annotation-2020-04-27-000953.png

    Thanks for your reply. I would like to basically press that button in action cener as on image above, but via command line.
      My Computer


  9. Posts : 6,348
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #9

    Can you right click on the Battery Saver and create a shortcut on the desktop?
    On the shortcut you will find the cmd line to launch the Battery Saver.
      My Computers


  10. Posts : 3,275
    Win10
       #10

    Does this mean anything ?

    Done according to this page:
    c - How to enable/disable Windows 10 battery saver in program? - Stack Overflow

    Code:
    command: powercfg /setdcvalueindex scheme_current sub_energysaver esbattthreshold 0
    How to turn on battery saver from command line?-set-0.jpg

    Code:
    command: powercfg /setdcvalueindex scheme_current sub_energysaver esbattthreshold 50
    How to turn on battery saver from command line?-set-50.jpg

    Code:
    command: powercfg /setdcvalueindex scheme_current sub_energysaver esbattthreshold 100
    How to turn on battery saver from command line?-set-100.jpg


    With esbattthreshold 0, battery saver is turned off, and any other value greater than 0 turns it on to be set at that particular level. Is this correct, or am I barking up thewrong tree?

    pn: Right click on battery saver icon doesn't show option to create a shortcut ( there is a tutorial for doing it at Create Battery Saver Shortcut in Windows 10 ).
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:07.
Find Us




Windows 10 Forums