How to Auto Enable Battery Saver on Windows 11
In this article
Windows 11 does not include a built-in setting that automatically turns on Battery Saver at a custom battery percentage. The feature you can control natively is the automatic Battery Saver trigger, which activates at 20% by default and can be adjusted only within a limited range in Settings. To enable Battery Saver at a specific percentage of your choosing, you need to use a scheduled task that runs a small script. This guide walks through both the native option and the script-based method so you can pick the level of control you want.
What You'll Need
- A Windows 11 PC with administrator access (needed to create a scheduled task).
- Basic comfort with copying and pasting a short command into PowerShell or Notepad.
- About ten minutes, including a test run.
Step-by-Step
Option 1: Use the built-in automatic Battery Saver threshold
- Open Settings with Windows key + I.
- Go to System > Power & battery. Labels can differ slightly depending on your Windows 11 version and region, so look for the power or battery section if the wording is different.
- Expand Battery saver.
- Set Turn battery saver on automatically at to the percentage you want. Windows offers a small set of preset values here rather than any number you type, so pick the closest option at or above your target.
- Confirm that Always turn on battery saver automatically or the automatic toggle is switched on.
This is the simplest method and survives Windows updates. The trade-off is that you cannot choose an arbitrary percentage such as 37%.
Option 2: Trigger Battery Saver at any exact percentage with a scheduled task
Battery Saver in Windows 11 is controlled by a power setting that can be changed from the command line. The approach below creates a small script that checks the battery level and switches Battery Saver on when the level drops to your chosen value, then schedules it to run regularly.
- Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin). Approve the prompt.
- First, confirm the power setting name on your machine by running:
powercfg /q
Scroll through the output until you find the Battery Saver section. Note the GUID shown there. GUIDs are long strings of letters and numbers and should match across standard Windows 11 installs, but checking avoids errors on modified systems. - Open Notepad and paste the following, replacing
YOUR_PERCENTwith your target number andBATTERY_SAVER_GUIDwith the GUID you found:$level = (Get-CimInstance Win32_Battery).EstimatedChargeRemainingif ($level -le YOUR_PERCENT) { powercfg /setdcvalueindex scheme_current sub_energysaver BATTERY_SAVER_GUID 1 }
This checks the current battery percentage and enables Battery Saver when the level is at or below your target. - Save the file with a
.ps1extension, for examplebattery-saver.ps1, in a folder you will not move or delete, such asC:\Scripts. - Open Task Scheduler from the Start menu search.
- In the right pane, click Create Task (not Create Basic Task, because you need more control over triggers and conditions).
- On the General tab, give the task a name such as Auto Battery Saver, and tick Run with highest privileges.
- Go to the Triggers tab, click New, and set the trigger to On an event or simply Daily and then Repeat task every 5 or 10 minutes for a duration of Indefinitely. A repeating trigger is what makes the check automatic rather than one-off.
- Go to the Actions tab, click New, set Action to Start a program, put
powershell.exein the Program field, and add-ExecutionPolicy Bypass -File "C:\Scripts\battery-saver.ps1"in the Add arguments field. Adjust the path if you saved the script elsewhere. - On the Conditions tab, clear Start the task only if the computer is on AC power so the task can run on battery, which is the whole point.
- Click OK, then right-click the new task and choose Run to test it immediately.
- To verify, open Settings > System > Power & battery and check whether Battery Saver is on. If your battery is above the target, temporarily lower the target in the script, run the task again, and confirm the change.
To turn Battery Saver back off when you plug in, create a second script with the same command but ending in 0 instead of 1, and schedule it to run when the AC power event occurs or on the same repeating trigger with a check for AC status.
Common Mistakes
- Using Create Basic Task instead of Create Task, which hides the repeat interval and conditions you need.
- Forgetting to clear the AC power condition, so the task never fires while you are actually on battery.
- Saving the script in a temporary folder or on a drive that is not always connected, which makes the task fail silently.
- Typing the GUID from memory instead of copying it from
powercfg /qoutput. - Expecting the native Settings slider to accept any number; it only offers preset values.
Tips
- Set your target a few percent above where you actually want Battery Saver to kick in, because the scheduled check runs on an interval rather than instantly.
- Keep the script in a folder excluded from cleanup tools so it is not removed.
- Name the task clearly so you can find and disable it later without hunting.
- If you dual-boot or use a laptop dock, test the task both on battery and plugged in.
Troubleshooting
If Battery Saver does not turn on, work through these checks in order. First, open Task Scheduler, find your task, and look at the Last Run Result column; a non-zero code points to a script or path problem. Second, run the script manually in an elevated PowerShell window to see the error text directly. Third, confirm the script path in the task action matches the file exactly, including the extension. Fourth, check that the task is enabled and that its trigger is repeating rather than set to a single past date. Fifth, verify the battery reading by running (Get-CimInstance Win32_Battery).EstimatedChargeRemaining on its own; if it returns nothing, the task cannot evaluate the level and you should fall back to the native threshold in Settings. Finally, if you changed the power plan recently, re-run powercfg /q and confirm the GUID still matches.
Frequently Asked Questions
Can Windows 11 enable Battery Saver at any percentage natively?
No. The built-in automatic trigger offers a limited set of preset values. An exact custom percentage requires a scheduled task or a third-party utility.
Does Battery Saver turn off automatically when I plug in?
Yes, Windows normally disables Battery Saver when the device is connected to power. If you use a script to force it on, add a matching script to turn it off.
Will this work on a desktop PC?
Battery Saver is designed for devices with a battery. On a desktop without one, the setting has no effect and the script will not find a battery level.
Does the scheduled task survive Windows updates?
Usually yes, because Task Scheduler entries and files in your own folders are not removed by updates. Major upgrades can occasionally reset power settings, so re-check after a feature update.
Is using a script safe?
Yes, provided you only run commands you understand and keep the file in a location you control. Avoid downloading scripts from unknown sources.