
No puedo eliminar ningún dispositivo bluetooth de mi computadora.
Lo intenté de muchas maneras. Eliminándolo del administrador de dispositivos, panel de control, configuración, bluetooth. Ninguno funciona.
¿Por qué esto es un problema?
Digamos que cambio el adaptador bluetooth. No puedo agregar el dispositivo porque todavía está allí. Tampoco puedo conectarme porque no está emparejado correctamente con el nuevo adaptador.
Intenté mostrar dispositivos y eliminarlos. Aparece nuevamente en el administrador de dispositivos.
Hay soluciones que algunos programas hacen hace mucho tiempo. El programa ya no existe.
Este es un error que ocurre en muchos Windows 10.
¿Qué tengo que hacer?
Sólo quiero que mi computadora "olvide" todos los dispositivos Bluetooth y comience uno nuevo.
¿Dónde se almacenan todos esos dispositivos Bluetooth? Puedo borrarlos todos.
Alguien me dijo que pegara algo en powershell. Algo así como la respuesta de Keith Miller.
This is the result. not only device I really want to remove is not listed, I cannot remove any devices at all
Select a device to remove (0 to Exit): 17
Removing device: Mi Phone mimax 3
Sorry, an error occured.
******** Bluetooth Devices ********
1 - Generic Attribute Profile
2 - Bluetooth LE Generic Attribute Service
3 - Galaxy A70
4 - Device Information Service
5 - 小米蓝牙手柄
6 - Bluetooth LE Generic Attribute Service
7 - Generic Attribute Profile
8 - Bluetooth LE Generic Attribute Service
9 - Generic Access Profile
10 - Lenovo A6000
11 - Bluetooth LE Generic Attribute Service
12 - MX Master
13 - Generic Attribute Profile
14 - Device Information Service
15 - Device Information Service
16 - BT-163
17 - SMI-M1
18 - Bluetooth LE Generic Attribute Service
19 - Bluetooth LE Generic Attribute Service
20 - Avantree Saturn Pro
21 - Generic Access Profile
22 - Bluetooth LE Generic Attribute Service
23 - MX Master
24 - Generic Access Profile
25 - Bluetooth LE Generic Attribute Service
Select a device to remove (0 to Exit): 24
Removing device: Generic Access Profile
Sorry, an error occured.
Estoy buscando una solución de nivel más bajo. Cosas como deshacerse de alguna entrada del registro o algún directorio. ¿Dónde se almacena toda la información sobre estos dispositivos? solo quiero borrarlos
Respuesta1
Crea un punto de restauración por si acaso. EnAdministrador de dispositivos, intente cambiar la vista Devices by connection
y eliminar USB Host Controller
:
Deje que las cosas se detecten y luego reinicie y vea cómo están las cosas.
Copie y pegue lo siguiente en unPotencia Shellventana de la consola. Presione <Enter>
para ejecutar:
$Source = @"
[DllImport("BluetoothAPIs.dll", SetLastError = true, CallingConvention = CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.U4)]
static extern UInt32 BluetoothRemoveDevice(IntPtr pAddress);
public static UInt32 Unpair(UInt64 BTAddress) {
GCHandle pinnedAddr = GCHandle.Alloc(BTAddress, GCHandleType.Pinned);
IntPtr pAddress = pinnedAddr.AddrOfPinnedObject();
UInt32 result = BluetoothRemoveDevice(pAddress);
pinnedAddr.Free();
return result;
}
"@
Function Get-BTDevice {
Get-PnpDevice -class Bluetooth |
?{$_.HardwareID -match 'DEV_'} |
select Status, Class, FriendlyName, HardwareID,
# Extract device address from HardwareID
@{N='Address';E={[uInt64]('0x{0}' -f $_.HardwareID[0].Substring(12))}}
}
################## Execution Begins Here ################
$BTR = Add-Type -MemberDefinition $Source -Name "BTRemover" -Namespace "BStuff" -PassThru
$BTDevices = @(Get-BTDevice) # Force array if null or single item
Do {
If ($BTDevices.Count) {
"`n******** Bluetooth Devices ********`n" | Write-Host
For ($i=0; $i -lt $BTDevices.Count; $i++) {
('{0,5} - {1}' -f ($i+1), $BTDevices[$i].FriendlyName) | Write-Host
}
$selected = Read-Host "`nSelect a device to remove (0 to Exit)"
If ([int]$selected -in 1..$BTDevices.Count) {
'Removing device: {0}' -f $BTDevices[$Selected-1].FriendlyName | Write-Host
$Result = $BTR::Unpair($BTDevices[$Selected-1].Address)
If (!$Result) {"Device removed successfully." | Write-Host}
Else {"Sorry, an error occured." | Write-Host}
}
}
Else {
"`n********* No devices found ********" | Write-Host
}
} While (($BTDevices = @(Get-BTDevice)) -and [int]$selected)