Skip to main content

Get-BatteryReport

Purpose

This solution provides information on a workstation's battery state.

Associated Content

Core Content

ContentTypeFunction
Script - Property - SetAutomate ScriptSets Computer or System Property.
Script - Get - Battery ReportAutomate ScriptPlaces Battery data in a custom table.
Internal Monitor - Proval - Production - DailyScript - Get-BatteryReportInternal MonitorChecks for any machine that has not reported.
△ CUSTOM - Execute Script - Get-BatteryReportAlert TemplateExecutes the data collection script on the machines detected by the internal monitor.
Dataview - Proval - Battery ReportDataviewDisplays Battery report information and calculates battery state using global or computer thresholds.

Other Content

ContentTypeFunction
Custom Table - plugin_proval_batteriesCustom TableStores Battery Information for each target.
Agnostic - Get-BatteryReport.ps1Agnostic ScriptCollects Battery report data and returns it as an object.

Implementation

  1. Import the following scripts using the ProSync Plugin:

  2. Import the following Dataview using the ProSync Plugin:

  3. Import the following Internal Monitor using the ProSync Plugin:

  4. Import the following alert template using the ProSync Plugin:

    • △ CUSTOM - Execute Script - Get-BatteryReport
  5. Using CWM - Automate - Script - Property - Set, set up a property named Proval-BatteryThreshold, with a value of your choosing in percent without the percent sign, with a type of Global and overwrite equal to 1.

    • If a custom threshold is not provided by the consultant, please set it to 70.
      • No tickets will be generated from this solution. This is strictly for the dataview to report the threshold violations.
    • OPTIONAL: Using CWM - Automate - Script - Property - Set, set up any computer-specific property named Proval-BatteryThreshold, with a value of your choosing in percent without the percent sign, with a type of Computer and overwrite equal to 1.
      • Only perform this step if instructed to do so by the consultant.
  6. Reload the System Cache:

  7. Configure the solution as follows: