How to create laptop battery full charge notification on Windows 10
According to experts, if you overcharge your laptop battery, it will reduce the lifespan of the battery. experts suggest one should keep a watch and monitoring on battery’s temperature when plugged in for a long time. If the battery is overheating, you should unplug your laptop.
Windows10 notifies you when your laptop’s battery is low by showing the notification on the screen. However, Windows 10 does not notify you when your battery is fully(100%) charged.
So we will create scripts which will notify you if you have a full battery.
create laptop battery full charge notification on Windows 10
1) first we create a script for that, so open notepad and paste below code
set oLocator = CreateObject("WbemScripting.SWbemLocator") set oServices = oLocator.ConnectServer(".","root\wmi") set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity") for each oResult in oResults iFull = oResult.FullChargedCapacity next while (1) set oResults = oServices.ExecQuery("select * from batterystatus") for each oResult in oResults iRemaining = oResult.RemainingCapacity bCharging = oResult.Charging next iPercent = ((iRemaining / iFull) * 100) mod 100 if bCharging and (iPercent > 99) Then msgbox "Battery is fully charged" wscript.sleep 30000 ' 5 minutes wend
Note: If you’re wondering why 99% instead of 100%, for some reason the script doesn’t show the percentage when the battery level reaches.
2) As you know this is a script, so save this script as .vbs extension
3) To enable full battery notification, simply double-click on FullBattery.vbs file once. Note that you will not see any notification or any window upon running the VBS script. Also, make sure you don’t launch the script multiple times as multiple instances of the script means multiple notifications!
You need to manually launch the FullBattery.vbs file each time you restart your PC. If you want to avoid that, you need make the script run at startup by adding a shortcut of the script to the Startup folder.
4) we add this script to a startup folder so windows will automatically load the script every time when you start your computer. to do that follow this path
But, first Create a shortcut of the script by right-clicking on FullBattery.vbs file and then clicking Create shortcut option.
5) Now Open the Run command box by using Windows logo + R hotkey. In the command field, type Shell:startup and then press Enter to open the Startup folder directly.
6) Finally, copy and paste the FullBattery.vbs shortcut in this folder. when your laptop reach 100% windows will notify you with sound.
I hope this tricks work for you and save your battery’s lifespan. if you like this post please share this post on social media and do comment if you have any problem.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
* You will receive the latest news and updates on your favorite cetegory!