Fixing a Bluetooth Mouse That Keeps Asking for a Passcode
A Bluetooth mouse asking Windows to “enter a passcode” to pair is a fairly common but confusing error, since a mouse has no way for you to actually type a code back to it. When this happens, the pairing is stuck in a bad state, and the fix is to remove the old pairing information from the registry and re-pair from scratch, rather than trying to work around the passcode prompt.Try the Easy Fix First (Updated for 2026)
Before reaching for the registry, it’s worth trying the simpler GUI-only route: go to Settings > Bluetooth & devices, find the mouse in the device list, click it and choose Remove device, then put the mouse back into pairing mode and add it again as new. This clears the same stuck pairing state for most cases and avoids editing the registry directly. If the device doesn’t show up in the list at all, or removing and re-adding it through Settings doesn’t clear the passcode prompt, the registry method below is the fallback. Windows stores Bluetooth pairing (link) keys under:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys
Under that key you’ll find a subkey for each Bluetooth radio/adapter that’s ever paired a device, and beneath that, an entry for every device it has paired with, named by that device’s Bluetooth MAC address. If you only have the one Bluetooth device, delete the matching device entry from under the radio’s subkey.
Back up the key first (right-click Keys and choose Export) before deleting anything, since you’re editing the registry directly. Once the stale entry is removed, put the mouse back into pairing mode and re-pair it as new — it should connect cleanly without prompting for a passcode this time.
This registry location and the overall behaviour are unchanged on current Windows 11 builds — the fix applies the same way whether you’re troubleshooting on Windows 10 or 11.
Resources
Gear We Recommend
A few general tech accessories worth having alongside this.
Browse our General Tech Accessories picks on AmazonAs an Amazon Associate, TechyGeeksHome earns from qualifying purchases.
Discover more from TechyGeeksHome
Subscribe to get the latest posts sent to your email.
פנטסטי – זה עובד!
Perfect! It’s Works! I spent a lot of time for this problem. Thank you!
פנטסטי – זה עובד!
I solved the problem in Windows 10 by executing control.exe (the old style control panel).
You add the mouse as a BT peripheral. It asks for a PIN. You leave it blank and click next.
I solved the problem in Windows 10 by executing control.exe (the old style control panel).
You add the mouse as a BT peripheral. It asks for a PIN. You leave it blank and click next.
Perfect! It’s Works! I spent a lot of time for this problem. Thank you!
thank you very very very much
Many people in Microsoft Community are blocked with this problem, I have commented your increible discover.
Thank you very much! Worked like a charm!
fantastic – this works!