PS_ PowerShell Scripts
DEVICES / COMMAND REFERENCE

Get-BluetoothBattery

Lists Bluetooth PnP devices that expose Windows' battery percentage property, with cleaned friendly names and instance IDs.

View Get-BluetoothBattery.ps1 on GitHub ↗

Usage

Get-BluetoothBattery -Name 'Sony'

Parameters

-Name
Optional substring to filter accessory names; defaults to all Bluetooth devices.

Returns

Name, BatteryPercent, InstanceId.

Note

Uses PnPUtil XML on Windows builds supporting this format (verified on build 26200), targeting BTHENUM nodes. BLE-only devices are not covered. The accessory must report a battery value to Windows; absent reports produce no row.