Skip to content

Commit

Permalink
Add more battery and energy reports to Report.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Nov 3, 2023
1 parent d8acd6b commit 2370225
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Report.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ if (Test-CommandExists "netsh") {

if (Test-CommandExists "powercfg") {
Show-Output "Creating battery report"
powercfg /batteryreport /output "${Reports}\battery.html"
powercfg /batteryreport /output "${Reports}\powercfg_battery.html"
powercfg /devicequery wake_armed > "${Reports}\powercfg_devicequery_wake_armed.txt"
powercfg /energy /output "${Reports}\powercfg_energy.html"
powercfg /sleepstudy /output "${Reports}\powercfg_sleepstudy.html"
powercfg /srumutil /output "${Reports}\powercfg_srumutil.csv" /csv
powercfg /systempowerreport /output "${Reports}\powercfg_systempowerreport.html"
powercfg /waketimers > "${Reports}\powercfg_waketimers.txt"
} else {
Show-Output "The command `"powercfg`" was not found."
}
Expand Down

0 comments on commit 2370225

Please sign in to comment.