r/bluetooth • • Sep 22 '21

Disable automatic Bluetooth connection in windows

I sometimes use my headset on the computer (Bluetooth is always on), but I don't really want to headset to automatically connect to the computer... The only solution (Windows 10) is to manually disconnect the headphones inside the pc Bluetooth settings or "remove the device" and then later, manually pair it to the computer again later.

This is obviously too much work...

So, I solved this Issue by making a batch file workaround that deleted the "registry key" that Windows needs to initiate the connection to the headset (file number 1). This way I don't have to manually pair the headset every time i want to use it or walk to my computer to manual disconnect the headset from the Bluetooth settings. When i want to use my headset on the computer again, "file number 2" restores the deleted registry key, and the headset now auto connects as normal again.

This should also work for other Bluetooth peripherals but, you will have to find the corresponding registry key for your device. Hope this workaround can come in handy for other as well! 🙂

OneDrive download link:
https://1drv.ms/u/s!AlAe6_dXmvWylrUoqFnBtpNATt-HIg?e=oWOz4c

If you want to create the batch file yourself, see code below:

Batch file commands file 1:

  1. REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Devices\94db564f64d1" /f

  2. net stop "Bluetooth Support Service"

  3. net start "Bluetooth Support Service"

Batch file commands file 2:

  1. REG IMPORT "C:\Users\%username%\Desktop\Bluetooth Disconnect\WH-1000XM4 - Bluetooth.reg"

  2. net stop "Bluetooth Support Service"

  3. net start "Bluetooth Support Service"

32 Upvotes

11 comments sorted by

2

u/[deleted] Dec 28 '22

Windows should just include this option but then they won't have anything to hype up marketing for the next "improved" version of Windows.

2

u/elyamandu Jun 26 '23

In my case the issue happens because of deviceassociationservice was running at session start, if service was restarted issue dissappeared.

I solved it by executing the following lines at session start using Task Sheduler:

sc config deviceassociationservice start=demand

sc stop deviceassociationservice

This will leave this service available only if needed, so if user or other service requires it, this service will be started.

1

u/sgp4sgp Sep 25 '23

Could you add further explanation to this please. It seems this solution you gave which starts and stops the deviceassociationservice is the best solution. I just would like to understand it better. Also, is there anything that won't work if I do this? Thanks

1

u/mmortal03 Feb 25 '24 edited Feb 25 '24

Presumably, this only solves the auto-connect problem if you don't want to auto-connect to *any* devices nearby?

Say, instead, there are *two* devices you are paired to within a room, and you *do* want to use one of them (headphones), but the other one (receiver/speaker) happens to take higher priority in the stack, so Windows auto-connects to it and *steals* your audio output so that you can't use the headphones. Am I right that your workaround doesn't help to *just* connect to the headphones but leave the receiver/speaker disconnected?

Edit: I might've found a workaround. Essentially, Windows may prioritize whichever device was paired most recently. So, if the headphones had been paired in the past, prior to the other device, then unpairing them and re-pairing them such that they have now been paired most recently seems to work: https://www.reddit.com/r/bluetooth/comments/hjq5pv/comment/fx47vcz/?utm_source=reddit&utm_medium=web2x&context=3

1

u/allthesnacks Oct 02 '25

2025 and still having this problem. Thanks for this solution it was driving me nuts how my laptop would auto connect to my headphones, I work from home so often have to switch between laptop and work phone. Windows solution to either turn off bluetooth or forget and re-pair a device each time is too slow. You're the GOAT!

1

u/Electronic-Border559 Jan 29 '23

how do you tell which device in regedit is the one for my Pixel Headphones? i have like 6 devices under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Devices\

2

u/phill27 Feb 23 '23

Click on one of the devices. Then in the right pane do a right click on the registry value "Name" and select "Modify". An edit window pops up and the hex value data is translated to poorly formatted human readable text on the right side.

1

u/Mental-Hovercraft848 Mar 08 '23

dude, thanks a lot 1000 times

1

u/FattySparks Aug 01 '23 edited Aug 01 '23

I was able to get this to delete the registry key and restore it, but it still connects to my headset. Any thoughts?

Edit: It looks like a restart makes it work on my PC, but I would think that defeats the purpose of this workaround. Is there any way to avoid having to restart?

1

u/allthesnacks Oct 02 '25

putting it to sleep / locking and unlocking will also work

1

u/alexlomba87 Mar 13 '26

What do you mean sorry? I also get the issue that it still connects to the device, what do you mean that putting it to sleep/locking will make it work? I need to do it everytime?