How to get Bluetooth Battery percentage in PowerShell?

UnkPL 0 Reputation points
2023-04-30T21:36:32.5833333+00:00

Hello

Today I Was Looking for Rainmeter Skin That Shows Bluetooth Battery Level, But I couldn't find one, Then I saw That All Pc Battery skins Use PowerShell Commands.

So My Question is, Is there A PowerShell command That Shows Battery percentage?

(I Really Don't Know What Am Doing Right Now lol)

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-05-02T11:40:58.0433333+00:00

    Hello there,

    As far as I am aware, there is no way to poll bluetooth device data beyond what you would get with Get-WmiObject, since the battery status seen in Windows Settings -> Bluetooth Devices is something coming from the vendors/devices driver and seems to, as of now, be inaccessible by PowerShell, unless there is some exotic snapin I am not aware of.

    You can get all possible device information via this command:

    Get-WmiObject -Query "select * from win32_PnPEntity"

    Where Name -like "MyDeviceName"

    Or if you are unsure how the device is named as of now, this would return a complete list of "devices":

    Get-WmiObject -Query "select *

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.