Such a simple task, one would say, and I haven't found a satisfiable solution. What I've tried (with music playing through a Bluetooth-connected speaker to really know the state of the radio):
- using devcon as admin:
devcon disable USB\VID_8087&PID_07DC&REV_0001
(which is the HW ID of my Bluetooth adapter)... requires reboot to work... - using powershell as admin:
Disable-NetAdapter "Bluetooth Network Connection 3"
(which is translation of the name of my Bluetooth adapter)... it disables the PAN driver, but a Bluetooth speaker continues playing music... - using net as admin:
net stop bthserv
... doesn't actually turn off the radio (BT speaker continues playing music) - using .NET: The most relevant page on MSDN doesn't say a word about turning the adapter on/off.
- using explorer:
ms-settings:bluetooth
orexplorer.exe %LocalAppData%\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy\LocalState\Indexed\Settings\cs-CZ\AAA_SettingsPagePCSystemBluetooth.settingcontent-ms
... opens the Bluetooth settings panel, but I still have to click on the toggle
I can't believe Microsoft would be so ignorant to not provide such a command...