Welcome to the Microsoft Script Center. We are dedicated to the system administrator scripters of the world. At the Microsoft Script Center, we focus on teaching people how to use Windows PowerShell to reduce time spent performing mundane tasks.
Â
What's new?
Check out the Hey, Scripting Guy! blog to catch all the latest news, events, and, of course, scripts!
PowerTip: Generate an HTML Battery-Life Report in PowerShell Summary: Use Windows PowerShell and generate an HTML battery-life report.
How can I generate an HTML battery-life report on my laptop to see expected battery life?
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
Tuesday, Jul 23