Turn Windows 8.1 Bluetooth on and off from the command line

Currently, in Windows 8.1, users go through hoops to get settings that control Bluetooth connectivity (Charms-> Settings-> Change PC Settings-> PC and Devices-> Bluetooth-> On / Off). I was wondering if there is a way to programmatically enable / disable bluetooth on the command line? I just want to write code that basically does what Windows does from the settings screen to just turn on / off Bluetooth.

I don’t want to just point out the settings link, as some people suggest. I challenge myself to write a script or program that can do this, but over the past few days I have been looking for a network for information, and at the moment I'm not sure that it can even be done. I even tried installing the Windows bluetooth command line library called "Bluetooth command line tools" and tried using their command "btconfig -c0", but it does not seem to work. Is there a language / approach / methodology that I can use to achieve this? Thanks!

+6
source share
1 answer

From this answer from the Microsoft community, I think there is no way to do this.

There is no Microsoft software to access Bluetooth from command prompt. 

How to enable Bluetooth and establish a connection with the device using the command line?

0
source

Source: https://habr.com/ru/post/978818/


All Articles