Get Alerts When Your Laptop Battery Is Low Or Full [Windows]

I had a spot of trouble with my laptop these past few days. Now that it’s been repaired, I have to keep a very close eye on how much the battery is charged. Before this happened, all I ever needed to care about was if my battery was plugged in and charging. Since it hadn’t bothered me in the past (and this is about 4 years worth of past), I really had zero ideas as to how to monitor battery percentage levels without expanding too much effort. There was the obvious risk that I’d just forget to check how much charge my battery had left, or how full it was. Fortunately, both problems were solved by using a script, and some built-in battery checks that Windows has. You can use both to get on-screen and audio alerts for when your battery has charged up to a certain level and it works for when you want to set a limit to the minimum or maximum charge.

Low Battery Percentage Alerts

Go to Control Panel>Hardware and Sound>Power Options>Edit Plan Settings and select a power plan to edit. Scroll down the list of manageable options until you see the Battery option. Here you can enable an audio alert for when the battery reaches Critical level and for when it is low. The great thing is you can select just how much those levels are. Levels can be set for both when your system is plugged in and/or on battery.

High Battery Percentage Alert

This one is kind of tricky and there are two ways you can get this done. The first method has you revisiting the Power Plans. You can set the Critical battery level to whatever percentage of battery charge you wanted to be alerted to. You will need to set the Critical battery action to ‘do nothing’ if you’re monitoring high battery charge levels otherwise when your battery is say 99% charged, the action might trigger the hibernate state. It’s obvious why this isn’t the greatest method.

The second method is the use of a super simple script. Paste the script (given below) into Notepad, and save it as Battery.vbs (set the save as dialogue to save as ‘all files). Save this file to your desktop and create a shortcut for it. Paste the shortcut in your Start-up folder if you need it to run automatically. Alternatively, if you don’t need it to run each time you boot your system, keep the file (and its shortcut) out of the Start-up folder and run it when you need to.

set oLocator = CreateObject("WbemScripting.SWbemLocator")
set oServices = oLocator.ConnectServer(".","rootwmi")
set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity")
for each oResult in oResults
iFull = oResult.FullChargedCapacity

while (1)
set oResults = oServices.ExecQuery("select * from batterystatus")
for each oResult in oResults
iRemaining = oResult.RemainingCapacity
bCharging = oResult.Charging
iPercent = ((iRemaining / iFull) * 100) mod 100
if bCharging and (iPercent > 95) Then msgbox "Battery is at " & iPercent & "%",vbInformation, "Battery monitor"
wscript.sleep 30000 ' 5 minutes

This script alerts you when the battery has charged to 96%,  and when it falls to 5%. You can edit the line if bCharging and (iPercent > 95) Then msgbox “Battery is at ” & iPercent & “%”,vbInformation, “Battery monitor” and replace the value in (iPercent > 95) to whatever value suits you.

Script via
The script has been working great for me so far and here’s hoping it does what you need it to as well.

Battery Limiter

For anyone who doesn’t want to work with a script and would prefer an app instead, give Battery Limiter a try. It works great.  Battery Limiter is a free little Windows app that basically does the same thing as the script i.e. it alerts you when your battery is 96% charged. It does however do two additional things; instead of just giving you an on-screen alert, it sounds an alaram. It’s also incredibly easy to customize the maximum charge percentage threshold.

Battery Limiter

If you’re battery is charged above 96% (the default setting), a beeping alarm will sound. Unplug your laptop to make the sound stop. To customize at what charge percentage the app alerts you, simply use the slider on the app’s interface to change it.

Battery Limiter-widget

The app is small and absolutely brilliant. It beats using a script simply because of how easy it is to customize the alert but also because the alert itself doesn’t interrupt what you’re working on. Be warned though, this app will prevent your laptop from sleeping.

Install Battery Limiter

قالب وردپرس

About Lily Herman

Lily Herman
Lily Herman is a New York-based writer and editor. In recent months, her work has been featured in Teen Vogue, Glamour, Refinery29, Cosmopolitan, TIME, Newsweek, Fast Company, and Mashable. You can check out her website, LinkedIn, and Twitter.

Leave a Reply

Your email address will not be published. Required fields are marked *