Lately I created an advertisement to sell my old laptop via an online portal/marketplace. One potential buyer asked me, how the condition of the battery is. So I asked myself – how could I answer that in good way, if there is no battery test available in BIOS? I did some research and found out that it is pretty easy to check the battery state with PowerShell. With one simple command, you can generate a battery report which outputs very useful data. I will let you know how to do that with Windows PowerShell Battery Report
Start PowerShell as administrator
1.) Start PowerShell as admin by right-clicking at the Windows Start button and selecting it:
Create Battery Report
2.) Now, simply copy & paste the following command:
powercfg /batteryreport /output “C:\battery-report.html”
After executing it, the report will be saved to the defined directory, in this case directly to the C:\ partition
Of course you can check out the whole documentation of the powercfg command at Microsoft Docs
Check HTML Report
3.) Open up your Windows File Explorer and navigate to the defined directory. Here you will find the .HTML file which can be opened with your favourite browser:
Windows PowerShell Battery Report
Just have a look through the whole Windows PowerShell Battery Report, it is quite interesting and you are able to gain some insights. My new laptop e.g. has a battery cycle count of 23 and the full charge capacity is nearly as good as the design capacity:
Of course you can also check the details of your battery usage with the active time of the sessions and the effective battery drain: