July 23rd, 2013

PowerTip: Generate an HTML Battery-Life Report in PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell and generate an HTML battery-life report.

Hey, Scripting Guy! Question How can I generate an HTML battery-life report on my laptop to see expected battery life?

Hey, Scripting Guy! Answer Open Windows PowerShell as an administrator and type the following command:

powercfg /batteryreport

The command reports a destination for the report that you open by using the Invoke-Item cmdlet (ii is an alias):

ii C:\battery-report.html

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback