mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 00:46:30 +02:00
Updated the manuals
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Script: *list-bluetooth-devices.ps1*
|
||||
========================
|
||||
|
||||
This PowerShell script lists all Bluetooth devices connected to the computer.
|
||||
This PowerShell script lists all Bluetooth devices connected to the local computer.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
@@ -20,9 +20,9 @@ PS> ./list-bluetooth-devices.ps1
|
||||
|
||||
|
||||
|
||||
Status Class FriendlyName InstanceId
|
||||
------ ----- ------------ ----------
|
||||
OK Bluetooth Realtek Bluetooth 5.3 Adapter USB\VID_...
|
||||
FriendlyName Status InstanceId
|
||||
------------ ------ ----------
|
||||
G3 Headset OK BTHENUM\DEV_FC58FA7A51C6\8&152049BE&0&BLUETOOTHDEVICE_FC58FA7A51C6
|
||||
...
|
||||
|
||||
```
|
||||
@@ -42,13 +42,13 @@ Script Content
|
||||
.SYNOPSIS
|
||||
Lists Bluetooth devices
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists all Bluetooth devices connected to the computer.
|
||||
This PowerShell script lists all Bluetooth devices connected to the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./list-bluetooth-devices.ps1
|
||||
|
||||
Status Class FriendlyName InstanceId
|
||||
------ ----- ------------ ----------
|
||||
OK Bluetooth Realtek Bluetooth 5.3 Adapter USB\VID_...
|
||||
FriendlyName Status InstanceId
|
||||
------------ ------ ----------
|
||||
G3 Headset OK BTHENUM\DEV_FC58FA7A51C6\8&152049BE&0&BLUETOOTHDEVICE_FC58FA7A51C6
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@@ -57,7 +57,7 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-PnpDevice | Where-Object {$_.Class -eq "Bluetooth"}
|
||||
Get-PnpDevice | Where-Object {$_.Class -eq "Bluetooth"} | Sort-Object -property FriendlyName | Format-Table -property FriendlyName,Status,InstanceId
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@@ -65,4 +65,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-bluetooth-devices.ps1 as of 05/19/2024 10:25:21)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-bluetooth-devices.ps1 as of 08/15/2024 09:50:48)*
|
||||
|
Reference in New Issue
Block a user