用 PowerShell 列出 Windows 的蓝牙设备
通过 Get-PnpDevice 查看已配对的蓝牙设备和它们的工作状态。
运行 `Get-PnpDevice -Class Bluetooth | Sort-Object Status | Format-Table Status, FriendlyName -AutoSize`,即可列出蓝牙设备及其状态(OK、Error 等)。
01命令
命令
$ Get-PnpDevice -Class Bluetooth | Sort-Object Status | Format-Table Status, FriendlyName -AutoSize02作用说明
Get-PnpDevice 会查询即插即用设备树,显示 Windows 认识的所有蓝牙设备:内置蓝牙适配器、USB 蓝牙棒以及通过该类暴露的已配对配件。状态为 Error 或 Degraded 表示设备需要处理,Unknown 通常是已拔出的设备。排查蓝牙异常时,这比在设备管理器里翻找快得多。
03风险
!注意: 该类别下不一定列出每个已配对的耳机或鼠标;需要完整列表可运行 `Get-PnpDevice | Where-Object {$_.InstanceId -like "BTHENUM*"}`。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Get-PnpDevice依据: Lists PnP devices; can be filtered by class (e.g. Bluetooth) and present status.
- Get-NetAdapter依据: Returns adapter objects with Status, LinkSpeed and MacAddress properties.
最后验证: 2026-09-18 · 分类: 网络