Uncategorized

Get A Full Battery Notification When Your Battery Is Full In Windows 10

If you have ever wished to get a full battery notification in Windows, today we will be telling you how to do it in 3 easy steps!

We’ve previously covered plenty of battery-related tips and tricks here at Windows Clan. We’ve shown you how to get Windows 7’s battery indicator, as well as how to generate detailed battery reports.

Windows has almost always had a notification for almost all sounds in the system, but when it comes to the system, Windows only offers a couple of options, namely when the battery is about to finish. We are sure that there are people out there who would definitely like to have an audio cue for when their laptops or other devices are charged.

To make this possible, we will be making a simple script and incorporate it into the startup of Windows so that you only have to run it once and it will be self-sufficient from then on.

STEP 1:

Open up a notepad file (Right-click on desktop -> New -> Text Document) and copy / paste the following lines of text:

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 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 > 95) Then msgbox "Battery is at " & iPercent & "%",vbInformation, "Battery monitor"   wscript.sleep 30000 ' 5 minutes wend

When you have done so, Navigate to toolbar, File and choose Save As. You can freely name the file as you wish, but it has to have a .vbs at the end of the file name and the Save as type MUST be set to “All Files“.

Saving the script.

STEP 2:

Now that you have saved the script, you have to navigate to the following directory in your “This PC

C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp

You will have to copy / paste the script file from its saved location to here and the script will automatically run every time your Windows boots.

You will now get full battery notification in Windows 10.

If you wish to manually run the script, you can freely do so too, and it will begin monitoring. When your battery reaches 95% of charge, you will get a sound from the script telling you so. If you wish, you can change value manually to whatever number you wish by changing the number “95” in the above lines of text.

Having a full battery notification can come in handy should you wish to become aware of your laptops charging state and don’t wish to drag the cursor to the battery.

Was this guide helpful to you? If so, please let us know in the comments section. This was discovered from Microsoft TechNet [TechNet].

The post Get A Full Battery Notification When Your Battery Is Full In Windows 10 appeared first on Windows Clan.

Most Popular

To Top