You switch on a new Bluetooth mouse, click Add device, and instead of connecting Windows asks you to “enter the PIN for your device” or type a passcode. A mouse has no keyboard and no screen, so there is no way to answer. The good news is that this is almost always a stuck or half-finished pairing on the PC side, not a faulty mouse. This guide works through the fixes in order, from the two-minute ones to clearing the old pairing record out of the registry, for Windows 11 and Windows 10.
Why Windows asks a mouse for a passcode
Modern Bluetooth mice pair using “Just Works” Secure Simple Pairing, which needs no code at all. Windows only falls back to asking for a PIN when something goes wrong in that handshake. The usual causes are:
- An old pairing record for the same mouse is still stored on the PC, often from before a reinstall or from a different Bluetooth adapter.
- The mouse is paired to another computer or a USB receiver at the same time and is confused about which host it is talking to.
- The Bluetooth driver is out of date, or the adapter is an old Bluetooth 2.x dongle that only supports legacy PIN pairing.
1. Try 0000 first
It sounds daft, but some older and budget mice use legacy pairing with a fixed PIN. If the box shows a field and a Connect button, type 0000 and press Connect. If that fails, try 1234. If neither works, cancel and move on.
2. Remove the mouse and pair again from scratch
- Open Settings > Bluetooth & devices > Devices on Windows 11 (on Windows 10, Settings > Devices > Bluetooth & other devices).
- Find the mouse in the list, click the three dots next to it and choose Remove device.
- Turn the mouse off and on, then put it into pairing mode. On most mice that means holding the connect or channel button for three to five seconds until the light flashes quickly.
- Back in Settings, choose Add device > Bluetooth and select the mouse.
If the mouse supports several channels (Logitech Easy-Switch, Microsoft multi-device mice), make sure you are on a free channel or the one you want to reuse. Pairing to a channel that is already linked to another PC is a common cause of the passcode prompt.
3. Clear hidden entries in Device Manager
Windows sometimes keeps a ghost copy of the mouse that does not show in Settings. Open Device Manager, choose View > Show hidden devices, and expand Bluetooth and Mice and other pointing devices. Right-click any greyed-out entry for your mouse and choose Uninstall device. Restart the PC and pair again.
4. Update or reinstall the Bluetooth driver
Check Settings > Windows Update > Advanced options > Optional updates for a Bluetooth driver, or download the latest one from your PC or adapter maker (Intel, Realtek, Qualcomm and MediaTek all publish their own). Our free DriverGeek tool lists the driver versions you have and shows newer ones Windows Update does not offer. If a recent driver update started the problem, roll it back instead; our guide to diagnosing and rolling back driver problems shows how. If the driver looks fine, uninstall the Bluetooth adapter in Device Manager, tick the option to delete the driver if it appears, restart, and let Windows reinstall it. While you are there, run the Bluetooth troubleshooter from Settings > System > Troubleshoot > Other troubleshooters, which resets the Bluetooth Support Service.
5. Delete the stored pairing key from the registry
If the prompt keeps coming back, the old link key for the mouse is probably still stored. Windows keeps these under:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys
Under Keys there is a subkey for each Bluetooth adapter, named after the adapter’s MAC address, and inside that a value for every device it has paired with, named after that device’s address.
There is a catch most guides skip: this key is owned by the SYSTEM account, so even an administrator usually sees it as empty or cannot delete anything. The reliable way round it is to open Registry Editor as SYSTEM using Microsoft’s free PsExec tool from Sysinternals:
psexec -s -i regedit
Run that from an elevated Terminal. In the Registry Editor window that opens:
- Right-click
Keysand choose Export to save a backup. - Find the mouse’s address. You can see it in Device Manager under the mouse’s Properties > Details > Bluetooth device address, or simply look for the entry that matches if you only have one or two devices.
- Delete that value, close Registry Editor and restart the PC.
Then put the mouse into pairing mode and add it as new. It should connect straight away without asking for a code. Do not delete the whole adapter subkey unless you are happy to re-pair every Bluetooth device you own.
6. Rule out the hardware
If none of that helps, try pairing the mouse with a phone or another PC. If it pairs there without a prompt, the problem is your PC’s adapter; a cheap Bluetooth 5.x USB adapter is a quick fix for old built-in radios. If it fails everywhere, replace the batteries and reset the mouse (check the maker’s instructions, often a long press of the connect button). If your mouse came with a USB receiver, using that instead of Bluetooth avoids pairing problems altogether and is usually more responsive.
If the mouse pairs but then keeps dropping out, that is a different problem; see our guide to fixing Bluetooth mouse and keyboard disconnects.
FAQ
Is it safe to delete Bluetooth keys from the registry?
Yes, as long as you only remove the entry for the device you are fixing and keep the export as a backup. The worst case is that you need to pair that device again.
Does Swift Pair cause this?
Swift Pair is the Windows 11 pop-up that offers to connect a nearby device. It uses the same pairing process, so if it triggers a passcode prompt, cancel it and use the steps above. You can turn the pop-up off under Bluetooth & devices > Devices.
What about a Bluetooth keyboard asking for a PIN?
That one is normal. A keyboard can type, so Windows shows a number for you to type on the keyboard and press Enter. Only mice and other devices with no keys should never need a code.
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!