Skip to content

Instantly share code, notes, and snippets.

@AnthonyMastrean
Created August 4, 2014 15:45
Show Gist options
  • Select an option

  • Save AnthonyMastrean/f799b5e3ab112e6d5d4b to your computer and use it in GitHub Desktop.

Select an option

Save AnthonyMastrean/f799b5e3ab112e6d5d4b to your computer and use it in GitHub Desktop.
Battery Monitor and Event Log
Get-WmiObject -Class "BatteryStatus" -Namespace "root/WMI" | Export-Csv "batterymonitor.csv" -Append
@AnthonyMastrean
Copy link
Author

@AnthonyMastrean
Copy link
Author

Use one of the WMI classes, Win32_Battery or BatteryStatus, scheduled tasks, and the Event Log/Viewer to get "realtime" information in a Windows friendly way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment