Get-BatteryReport
Purpose
This solution provides information on a workstation's battery state.
Associated Content
Core Content
| Content | Type | Function | 
|---|---|---|
| Script - Property - Set | Automate Script | Sets Computer or System Property. | 
| Script - Get - Battery Report | Automate Script | Places Battery data in a custom table. | 
| Internal Monitor - Proval - Production - DailyScript - Get-BatteryReport | Internal Monitor | Checks for any machine that has not reported. | 
| △ CUSTOM - Execute Script - Get-BatteryReport | Alert Template | Executes the data collection script on the machines detected by the internal monitor. | 
| Dataview - Proval - Battery Report | Dataview | Displays Battery report information and calculates battery state using global or computer thresholds. | 
Other Content
| Content | Type | Function | 
|---|---|---|
| Custom Table - plugin_proval_batteries | Custom Table | Stores Battery Information for each target. | 
| Agnostic - Get-BatteryReport.ps1 | Agnostic Script | Collects Battery report data and returns it as an object. | 
Implementation
- 
Import the following scripts using the ProSync Plugin: 
- 
Import the following Dataview using the ProSync Plugin: 
- 
Import the following Internal Monitor using the ProSync Plugin: 
- 
Import the following alert template using the ProSync Plugin: - △ CUSTOM - Execute Script - Get-BatteryReport
 
- 
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.
 
 
- If a custom threshold is not provided by the consultant, please set it to 70.
- 
Reload the System Cache: 
- 
Configure the solution as follows: - Navigate to Automation → Monitors within the CWA Control Center and set up the following:
- Internal Monitor - Proval - Production - DailyScript - Get-BatteryReport
- Configure with the alert template: △ CUSTOM - Execute Script - Get-BatteryReport
- Right-click and Run Now to start the monitor.
 
- Configure with the alert template: 
 
- Internal Monitor - Proval - Production - DailyScript - Get-BatteryReport
 
- Navigate to Automation → Monitors within the CWA Control Center and set up the following: