<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://znil.net/index.php?action=history&amp;feed=atom&amp;title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen</id>
	<title>PowerShell Batteriestand von Bluetooth oder PnP Geräten abfragen - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://znil.net/index.php?action=history&amp;feed=atom&amp;title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen"/>
	<link rel="alternate" type="text/html" href="https://znil.net/index.php?title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen&amp;action=history"/>
	<updated>2026-05-05T19:28:57Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in znilwiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://znil.net/index.php?title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen&amp;diff=13742&amp;oldid=prev</id>
		<title>BLinz am 17. Oktober 2023 um 09:08 Uhr</title>
		<link rel="alternate" type="text/html" href="https://znil.net/index.php?title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen&amp;diff=13742&amp;oldid=prev"/>
		<updated>2023-10-17T09:08:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 17. Oktober 2023, 11:08 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;Changelog:&#039;&#039;&#039;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;u&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;u&amp;gt;&#039;&#039;&#039;Changelog:&#039;&#039;&#039;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/&lt;/ins&gt;u&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 17.10.2023 erste Version&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 17.10.2023 erste Version&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BLinz</name></author>
	</entry>
	<entry>
		<id>https://znil.net/index.php?title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen&amp;diff=13741&amp;oldid=prev</id>
		<title>BLinz: Die Seite wurde neu angelegt: „&lt;u&gt;&#039;&#039;&#039;Changelog:&#039;&#039;&#039;&lt;\u&gt;&lt;br&gt; * 17.10.2023 erste Version ---- ==Vorwort== Eigentlich wollte ich irgendwie den aktuellen Batteriestand meiner Logitech-Maus &#039;&#039;&#039;MX Master 3&#039;&#039;&#039; abfragen. Das ist mir bei der Erstellung des Artikels noch nicht gelungen. Aber ich hatte ein Fundstück im Internet was mir speichern wollte.&lt;br&gt; &lt;br&gt; ---- ==PnP Geräte nach Batterie scannen== Das folgende Skript stammt von hier: https://stackoverflow.com/questions/71736070/how-to-get-…“</title>
		<link rel="alternate" type="text/html" href="https://znil.net/index.php?title=PowerShell_Batteriestand_von_Bluetooth_oder_PnP_Ger%C3%A4ten_abfragen&amp;diff=13741&amp;oldid=prev"/>
		<updated>2023-10-17T09:08:16Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;Changelog:&amp;#039;&amp;#039;&amp;#039;&amp;lt;\u&amp;gt;&amp;lt;br&amp;gt; * 17.10.2023 erste Version ---- ==Vorwort== Eigentlich wollte ich irgendwie den aktuellen Batteriestand meiner Logitech-Maus &amp;#039;&amp;#039;&amp;#039;MX Master 3&amp;#039;&amp;#039;&amp;#039; abfragen. Das ist mir bei der Erstellung des Artikels noch nicht gelungen. Aber ich hatte ein Fundstück im Internet was mir speichern wollte.&amp;lt;br&amp;gt; &amp;lt;br&amp;gt; ---- ==PnP Geräte nach Batterie scannen== Das folgende Skript stammt von hier: https://stackoverflow.com/questions/71736070/how-to-get-…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;Changelog:&amp;#039;&amp;#039;&amp;#039;&amp;lt;\u&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
* 17.10.2023 erste Version&lt;br /&gt;
----&lt;br /&gt;
==Vorwort==&lt;br /&gt;
Eigentlich wollte ich irgendwie den aktuellen Batteriestand meiner Logitech-Maus &amp;#039;&amp;#039;&amp;#039;MX Master 3&amp;#039;&amp;#039;&amp;#039; abfragen. Das ist mir bei der Erstellung des Artikels noch nicht gelungen. Aber ich hatte ein Fundstück im Internet was mir speichern wollte.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
==PnP Geräte nach Batterie scannen==&lt;br /&gt;
Das folgende Skript stammt von hier: https://stackoverflow.com/questions/71736070/how-to-get-bluetooth-device-battery-percentage-using-powershell-on-windows&amp;lt;br&amp;gt;&lt;br /&gt;
Es spuckt gleich den fertigen Befehl aus mit dem man die Stand gezielt abfragen kann:&amp;lt;br&amp;gt;&lt;br /&gt;
Ich habe es nur auf den &amp;#039;*&amp;#039; geändert und den Gerätenamen in &amp;lt;code&amp;gt;&amp;quot;...&amp;quot;&amp;lt;/code&amp;gt; gepackt:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Get-PnpDevice -FriendlyName &amp;quot;*&amp;quot; | ForEach-Object {&lt;br /&gt;
    $local:test = $_ |&lt;br /&gt;
    Get-PnpDeviceProperty -KeyName &amp;#039;{104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2&amp;#039; |&lt;br /&gt;
        Where Type -ne Empty;&lt;br /&gt;
    if ($test) {&lt;br /&gt;
        &amp;quot;To query battery for `&amp;quot;$($_.FriendlyName)`&amp;quot;, run the following:&amp;quot;&lt;br /&gt;
        &amp;quot;    Get-PnpDeviceProperty -InstanceId &amp;#039;$($test.InstanceId)&amp;#039; -KeyName &amp;#039;{104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2&amp;#039; | % Data&amp;quot;&lt;br /&gt;
        &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;The result will look like this:&amp;quot;;&lt;br /&gt;
        Get-PnpDeviceProperty -InstanceId $($test.InstanceId) -KeyName &amp;#039;{104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2&amp;#039; | % Data&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Das Ausführen kann eine Weile dauern, aber das macht man ja nicht so oft.&amp;lt;br&amp;gt;&lt;br /&gt;
Beispielausgabe - bei mir wurden meine In-Ear-Kopfhörer und mein Handy gefunden:&amp;lt;br&amp;gt;&lt;br /&gt;
 To query battery for &amp;quot;Bose QC Ultra Earbuds Hands-Free AG&amp;quot;, run the following:&lt;br /&gt;
     Get-PnpDeviceProperty -InstanceId &amp;#039;BTHENUM\{0000111E-0000-1000-8000-00805F9B34FB}_VID&amp;amp;0001009E_PID&amp;amp;4072\A&amp;amp;24C9D853&amp;amp;0&amp;amp;ACBF71B71C58_C00000000&amp;#039; -KeyName &amp;#039;{104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2&amp;#039; | % Data&lt;br /&gt;
 &lt;br /&gt;
 The result will look like this:&lt;br /&gt;
 60&lt;br /&gt;
 To query battery for &amp;quot;BLinzA9 Hands-Free HF&amp;quot;, run the following:&lt;br /&gt;
     Get-PnpDeviceProperty -InstanceId &amp;#039;BTHENUM\{0000111F-0000-1000-8000-00805F9B34FB}_VID&amp;amp;00010075_PID&amp;amp;0100\A&amp;amp;24C9D853&amp;amp;0&amp;amp;00B5D006B76E_C00000000&amp;#039; -KeyName &amp;#039;{104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2&amp;#039; | % Data&lt;br /&gt;
 &lt;br /&gt;
 The result will look like this:&lt;br /&gt;
 80&lt;br /&gt;
Der fertige Befehl steht da nun und der Wert der ausgespuckt würde.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
==Kommentare==&lt;br /&gt;
&amp;lt;comments /&amp;gt;&lt;/div&gt;</summary>
		<author><name>BLinz</name></author>
	</entry>
</feed>