The Bluetooth worked fine until I run Disable-NetAdapter * and then Enable-NetAdapter *. It was supposed to just turn OFF/ON all net adapters (including Bluetooth), but it actually disconnects the Bluetooth hardware (I guess it's a bug).
After these PowerShell commands, the Bluetooth only show in device manager in "view hidden device". And in device manager, each item listed under the BT I get Currently, this hardware device is not connected to the computer.
Someone having the same problem solved it by physically exchanging the Bluetooth hardware, with another one, and reboot. The BT reappeared. Then exchanging back with the first hardware worked: when he rebooted, the BT hardware was then recognized/reconnected.
Is there a PowerShell command to reset the Bluetooth hardware connection to the computer, and then try to detect it again?
To Microsoft: this bug seems related (and maybe the root of) this kind of issue.
- the problem happens on Windows 10 1809, and also in 1903.
I tried:
uninstalling the Bluetooth driver, which was shown (before this in the device manager/hidden view) and reboot. Still no Bluetooth.
I tried to use this code (a modified version of Ben's code in this answer). When I run it sends the error,
Start-Service bthserv, so runGet-Service bthserv | Start-Service. And when I run Ben's code again it output:Wi-Fi On.