If your laptop battery is going low too soon, or you’d like to investigate related issues, there is a simple way to generate an extensive battery charging report. It shows exactly when your battery was charged, what its capacity is, and how long it took to deplete.
Here is the code to create a 14-day report:
$path = "$env:temp/battery_report2.html"
powercfg /batteryreport /output $Path /duration 14
Start-Process -FilePath $Path -Wait
Remove-Item -Path $path
Note that this call does not require Administrator privileges (as often stated). Just make sure the report file is generated in a location where you have write-permissions.
ReTweet this Tip!
Powered by IDERA