You might already know how Surface’s battery report can help you to learn more about your device’s battery and it’s history. In order to access this report, you will need to generate the report first.
Today, we will guide you how to create a single batch file that allows you to access the battery report immediately.
To do this:
- Click on Start
- Type “notepad” and hit Enter key
- Type the following command lines:
powercfg /batteryreport start %CD%/battery-report.html
- Go to File menu > Save As…
- Change Save as type to All Files (*.*), and enter “Battery Report.bat” into file name box.
- Click on Save button
Now you can access the battery report, by go to Desktop and double-click on Battery Report.bat. It will generate the report and open the report for you automatically.
COMMENTS
Let us know what you think!
We appreciate hearing your thoughts, questions, and ideas about “Quick access to Surface’s battery report with a simple batch file”.
The second line in the example batch file contains a forward slash instead of a backslash.
Also, “%CD%” won’t work in a folder name with spaces but “.” will.
So here’s my version of the above script with errors corrected and no text output in command prompt:
@echo off
powercfg /batteryreport >nul
start .\battery-report.html >nul
thank you both!!