PowerShell 中管理蓝牙设备可以使用以下命令 |
您所在的位置:网站首页 › 查看蓝牙耳机的版本 › PowerShell 中管理蓝牙设备可以使用以下命令 |
获取已知的蓝牙服务列表,你可以尝试使用以下命令: powershellCopy Code Get-PnpDevice -Class Bluetooth这个命令将会列出计算机中的蓝牙设备及其相关信息,包括服务等 PowerShell 命令来获取已配对的蓝牙设备: powershellCopy Code Get-WmiObject -Namespace "root\cimv2" -Class Win32_PnPEntity | Where-Object {$_.Name -like "*Bluetooth*"} | Select-Object Name这个命令将返回一个列表,其中包含所有已配对的蓝牙设备的名称。 列出所有蓝牙设备的详细信息,可以使用以下命令: powershellCopy Code Get-WmiObject -Namespace "root\cimv2" -Class Win32_PnPEntity | Where-Object {$_.Name -like "*Bluetooth*"} | Select-Object Name,DeviceID,Status这个命令将返回一个列表,其中包含所有蓝牙设备的名称、设备 ID 和状态。
PowerShell 中管理蓝牙设备可以使用以下命令: Get-BluetoothDeviceInfo: 用于获取已配对的蓝牙设备信息。 bashCopy Code Get-BluetoothDeviceInfoGet-BluetoothDevice: 用于获取当前系统中的所有蓝牙设备。 bashCopy Code Get-BluetoothDeviceAdd-BluetoothDevice: 用于将蓝牙设备添加到计算机。 bashCopy Code Add-BluetoothDevice -DeviceName "DeviceName"Remove-BluetoothDevice: 用于从计算机中移除蓝牙设备。 bashCopy Code Remove-BluetoothDevice -DeviceName "DeviceName"Set-BluetoothDeviceAudio: 用于配置蓝牙音频设备。 bashCopy Code Set-BluetoothDeviceAudio -DeviceName "DeviceName" -Enable $trueSet-BluetoothDevicePower: 用于启用或禁用蓝牙设备。 bashCopy Code Set-BluetoothDevicePower -DeviceName "DeviceName" -PowerState OnEnable-Bluetooth: 用于启用计算机上的蓝牙功能。 bashCopy Code Enable-BluetoothDisable-Bluetooth: 用于禁用计算机上的蓝牙功能。 bashCopy Code Disable-Bluetooth
PowerShell 还提供了一些其他管理蓝牙设备的命令,例如: Set-BluetoothDeviceInfo: 用于设置蓝牙设备的信息,如设备名称、类别等。 bashCopy Code Set-BluetoothDeviceInfo -DeviceName "DeviceName" -DeviceType "Headset"Rename-BluetoothDevice: 用于重命名已配对的蓝牙设备。 bashCopy Code Rename-BluetoothDevice -DeviceName "OldName" -NewName "NewName"Connect-BluetoothDevice: 用于连接到蓝牙设备。 bashCopy Code Connect-BluetoothDevice -DeviceName "DeviceName"Disconnect-BluetoothDevice: 用于断开与蓝牙设备的连接。 bashCopy Code Disconnect-BluetoothDevice -DeviceName "DeviceName"Test-BluetoothDevice: 用于测试与蓝牙设备的连接。 bashCopy Code Test-BluetoothDevice -DeviceName "DeviceName"这些命令提供了在 PowerShell 中管理蓝牙设备的更多选项。您可以根据您的具体需求选择适合您的命令
PowerShell 还有一些其他管理蓝牙设备的命令,具体如下: Get-BluetoothScanning: 用于获取当前系统中的蓝牙扫描状态。 bashCopy Code Get-BluetoothScanningSet-BluetoothScanning: 用于启用或禁用蓝牙扫描功能。 bashCopy Code Set-BluetoothScanning -Enabled $trueEnable-BluetoothAdvertisement: 用于启用蓝牙广播功能。 bashCopy Code Enable-BluetoothAdvertisement -BluetoothAddress "Address"Disable-BluetoothAdvertisement: 用于禁用蓝牙广播功能。 bashCopy Code Disable-BluetoothAdvertisement -BluetoothAddress "Address"Get-BluetoothLEDevice: 用于获取与蓝牙低功耗设备的连接。 bashCopy Code Get-BluetoothLEDevice -DeviceName "DeviceName"Start-BluetoothScan: 用于启动蓝牙设备扫描以发现附近的蓝牙设备。 bashCopy Code Start-BluetoothScanStop-BluetoothScan: 用于停止蓝牙设备扫描。 bashCopy Code Stop-BluetoothScan这些命令提供了更多选项来管理蓝牙设备和相关功能。
PowerShell 还提供了一些其他管理蓝牙设备的命令,例如: Get-BluetoothAudioDevice: 用于获取已连接或可用于连接的蓝牙音频设备。 bashCopy Code Get-BluetoothAudioDeviceShow-BluetoothDeviceClass: 用于显示蓝牙设备的设备类别。 bashCopy Code Show-BluetoothDeviceClassShow-BluetoothDeviceInfo: 用于显示指定蓝牙设备的详细信息。 bashCopy Code Show-BluetoothDeviceInfo -DeviceName "DeviceName"Show-BluetoothDeviceHistory: 用于显示与指定蓝牙设备相关的事件历史记录。 bashCopy Code Show-BluetoothDeviceHistory -DeviceName "DeviceName"Show-BluetoothDeviceNotification: 用于显示与指定蓝牙设备相关的通知。 bashCopy Code Show-BluetoothDeviceNotification -DeviceName "DeviceName"Update-BluetoothDeviceInfo: 用于更新已配对蓝牙设备的信息。 bashCopy Code Update-BluetoothDeviceInfo -DeviceName "DeviceName" -NewDeviceName "NewName"这些命令提供了更多的选项来管理蓝牙设备,您可以根据您的具体需求选择适合您的命令。
PowerShell 还提供了一些其他管理蓝牙的命令,例如: Get-BluetoothDeviceInfo: 用于获取指定蓝牙设备的信息。 bashCopy Code Get-BluetoothDeviceInfo -DeviceName "DeviceName"Get-BluetoothDevice : 用于获取所有已配对的蓝牙设备。 bashCopy Code Get-BluetoothDeviceRegister-BluetoothDevice : 用于将蓝牙设备注册到系统中。 bashCopy Code Register-BluetoothDevice -Path "DevicePath"Remove-BluetoothDevice : 用于从系统中移除已配对的蓝牙设备。 bashCopy Code Remove-BluetoothDevice -DeviceName "DeviceName"Set-BluetoothDevice : 用于设置蓝牙设备的属性。 bashCopy Code Set-BluetoothDevice -Name "DeviceName" -Property "PropertyValue"这些命令提供了更多选项来管理蓝牙设备。您可以根据您的具体需求选择适合您的命令。 与蓝牙相关的常用 PowerShell 命令: Get-BluetoothDeviceInfo: 获取指定蓝牙设备的信息。 bashCopy Code Get-BluetoothDeviceInfo -DeviceName "DeviceName"Get-BluetoothDevice: 获取系统中所有已配对的蓝牙设备。 bashCopy Code Get-BluetoothDeviceRegister-BluetoothDevice: 将蓝牙设备注册到系统中。 bashCopy Code Register-BluetoothDevice -Path "DevicePath"Remove-BluetoothDevice: 从系统中移除已配对的蓝牙设备。 bashCopy Code Remove-BluetoothDevice -DeviceName "DeviceName"Set-BluetoothDevice: 设置蓝牙设备的属性。 bashCopy Code Set-BluetoothDevice -Name "DeviceName" -Property "PropertyValue"Show-BluetoothDeviceClass: 显示蓝牙设备的设备类别。 bashCopy Code Show-BluetoothDeviceClassShow-BluetoothDeviceInfo: 显示指定蓝牙设备的详细信息。 bashCopy Code Show-BluetoothDeviceInfo -DeviceName "DeviceName"Show-BluetoothDeviceHistory: 显示与指定蓝牙设备相关的事件历史记录。 bashCopy Code Show-BluetoothDeviceHistory -DeviceName "DeviceName"这些命令可用于在 PowerShell 中管理蓝牙设备 Get-BluetoothAudioDevice: 获取已连接或可用于连接的蓝牙音频设备。 bashCopy Code Get-BluetoothAudioDeviceShow-BluetoothDeviceNotification: 显示与指定蓝牙设备相关的通知。 bashCopy Code Show-BluetoothDeviceNotification -DeviceName "DeviceName"Update-BluetoothDeviceInfo: 更新已配对蓝牙设备的信息。 bashCopy Code Update-BluetoothDeviceInfo -DeviceName "DeviceName" -NewDeviceName "NewName"这些命令提供了更多的选项来管理蓝牙设备 PowerShell 还提供了其他一些与蓝牙相关的命令,例如: Get-BluetoothHidDevice: 获取已连接或可用于连接的蓝牙 HID(Human Interface Device)设备。 bashCopy Code Get-BluetoothHidDeviceShow-BluetoothHidDeviceDetail: 显示与指定蓝牙 HID 设备相关的详细信息。 bashCopy Code Show-BluetoothHidDeviceDetail -HidDevicePath "DevicePath"Connect-BluetoothDevice: 连接到指定的蓝牙设备。 bashCopy Code Connect-BluetoothDevice -DeviceName "DeviceName"Disconnect-BluetoothDevice: 从指定蓝牙设备断开连接。 bashCopy Code Disconnect-BluetoothDevice -DeviceName "DeviceName"Show-BluetoothPendingPairing: 显示正在等待配对的蓝牙设备。 bashCopy Code Show-BluetoothPendingPairingStart-BluetoothScan: 开始扫描周围的蓝牙设备。 bashCopy Code Start-BluetoothScanStop-BluetoothScan: 停止扫描周围的蓝牙设备。 bashCopy Code Stop-BluetoothScan这些命令提供了更多选项来管理蓝牙设备 Get-BluetoothComPort: 获取与蓝牙设备关联的 COM 端口信息。 bashCopy Code Get-BluetoothComPortShow-BluetoothDeviceDriver: 显示与指定蓝牙设备相关的驱动程序信息。 bashCopy Code Show-BluetoothDeviceDriver -DeviceName "DeviceName"Set-BluetoothHidDeviceUsage: 设置蓝牙 HID 设备的使用情况。 bashCopy Code Set-BluetoothHidDeviceUsage -HidDevicePath "DevicePath" -Usage "UsageType"Set-BluetoothHidDeviceUsagePage: 设置蓝牙 HID 设备的使用页面。 bashCopy Code Set-BluetoothHidDeviceUsagePage -HidDevicePath "DevicePath" -UsagePage "PageType"Show-BluetoothHidDeviceUsage: 显示与指定蓝牙 HID 设备相关的使用情况。 bashCopy Code Show-BluetoothHidDeviceUsage -HidDevicePath "DevicePath"这些命令提供了更多选项来管理蓝牙设备及其相关属性 Get-BluetoothDeviceInfo: 获取指定蓝牙设备的详细信息,如设备地址、名称、类别等。 bashCopy Code Get-BluetoothDeviceInfo -DeviceName "DeviceName"Get-BluetoothFileTransfer: 获取正在进行的蓝牙文件传输操作的状态。 bashCopy Code Get-BluetoothFileTransferShow-BluetoothPairing: 显示已配对的蓝牙设备列表。 bashCopy Code Show-BluetoothPairingRemove-BluetoothDevice: 从系统中移除指定的蓝牙设备。 bashCopy Code Remove-BluetoothDevice -DeviceName "DeviceName"Set-BluetoothDeviceInfo: 设置指定蓝牙设备的信息,如设备名称。 bashCopy Code Set-BluetoothDeviceInfo -DeviceName "DeviceName" -Name "NewName"这些命令提供了更多选项来管理蓝牙设备及其相关属性 Set-BluetoothAudioDevice: 设置蓝牙音频设备的状态,例如启用或禁用。 bashCopy Code Set-BluetoothAudioDevice -DeviceName "DeviceName" -Enabled $trueShow-BluetoothAudioDevice: 显示已连接的蓝牙音频设备列表。 bashCopy Code Show-BluetoothAudioDeviceSet-BluetoothAudioRoute: 设置蓝牙音频设备的音频路由,例如将音频路由到蓝牙耳机或扬声器。 bashCopy Code Set-BluetoothAudioRoute -DeviceName "DeviceName" -AudioRoute "RouteType"Set-BluetoothPairingConfiguration: 配置蓝牙设备的配对行为,例如设置是否自动配对等。 bashCopy Code Set-BluetoothPairingConfiguration -AutoPairEnabled $trueShow-BluetoothL2CapLayerStatistics: 显示蓝牙 L2CAP 层的统计信息。 bashCopy Code Show-BluetoothL2CapLayerStatistics这些命令提供了更多选项来管理蓝牙设备及其相关属性 Get-BluetoothScannedDevice: 获取已扫描到的蓝牙设备列表。 bashCopy Code Get-BluetoothScannedDeviceGet-BluetoothTrustedDevices: 获取已信任的蓝牙设备列表。 bashCopy Code Get-BluetoothTrustedDevicesInvoke-BluetoothPairing: 强制启动蓝牙设备配对过程。 bashCopy Code Invoke-BluetoothPairing -DeviceName "DeviceName"Set-BluetoothHciEventFilter: 配置蓝牙控制器的事件筛选器。 bashCopy Code Set-BluetoothHciEventFilter -EventType "EventType" -Filter "FilterType"Show-BluetoothServices: 显示蓝牙服务的列表及其状态。 bashCopy Code Show-BluetoothServices这些命令提供了更多选项来管理蓝牙设备及其相关属性 Get-BluetoothRadioInfo: 获取系统上蓝牙无线电的信息,如名称、状态、类别等。 bashCopy Code Get-BluetoothRadioInfoSet-BluetoothHidDevicePin: 设置连接到系统的蓝牙 HID 设备的 PIN 码。 bashCopy Code Set-BluetoothHidDevicePin -DeviceName "DeviceName" -Pin "PIN"Set-BluetoothHidDeviceProtection: 设置蓝牙 HID 设备的安全保护级别。 bashCopy Code Set-BluetoothHidDeviceProtection -DeviceName "DeviceName" -ProtectionLevel "Level"Show-BluetoothDeviceClass: 显示系统中已知的蓝牙设备类别列表。 bashCopy Code Show-BluetoothDeviceClassShow-BluetoothManufacturerSettings: 显示蓝牙制造商特定的设置信息。 bashCopy Code Show-BluetoothManufacturerSettings这些命令提供了更多选项来管理蓝牙设备及其相关属性
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |