Fleet’s built-in queries for collecting and storing important device information.
Apple
Linux
Windows
ChromeOS
Battery
Determines battery health based on the cycle count, designed capacity, and max capacity of the battery.
SELECT
serial_number, cycle_count, designed_capacity, max_capacity
FROM battery
$battery = Get-CimInstance Win32_Battery
if (-not $battery) {
Write-Output "No battery information available."
exit
}
$battery | Select-Object `
@{Name='serial_number';Expression={$_.SerialNumber}}, `
@{Name='cycle_count';Expression={$_.CycleCount}}, `
@{Name='designed_capacity';Expression={$_.DesignCapacity}}, `
@{Name='max_capacity';Expression={$_.FullChargeCapacity}} | Format-Table -AutoSize
PowerShell commands are currently work in progress, contributions welcome.
Vitals