Because Bluetooth worked before the recent update and reinstalling current drivers has not cleared Code 31, roll back the Bluetooth adapter driver rather than reinstalling that same version again.
1. Roll back the Bluetooth driver
- Right-click Start → Device Manager.
- Expand Bluetooth.
- Right-click the Bluetooth adapter—not the headphones or Microsoft Bluetooth enumerators—and select Properties.
- Open the Driver tab.
- Select Roll Back Driver, complete the prompts, and restart Windows.
- Return to Device Manager and check Device status.
Microsoft documents rollback specifically for Bluetooth that stopped working after a recent driver or Windows update.^1^ Code 31 means Windows could not load the driver required by that device; it does not, by itself, prove that the adapter has physically failed.^2^
If Roll Back Driver is unavailable, continue below rather than repeating the uninstall/reinstall process you already performed.
2. Fully power-cycle the Bluetooth hardware
A restart may not fully reset the adapter:
- Hold Shift while selecting Start → Power → Shut down.
- Leave the computer powered off for one minute.
- If it is a desktop or removable USB Bluetooth adapter, disconnect power and unplug the adapter during that minute.
- Reconnect it, start Windows, and check whether Code 31 has cleared.
Microsoft specifically requires Shut down, rather than Restart, for this Bluetooth hardware reset.^3^
3. Check OEM firmware and optional driver updates
Since the adapter manufacturer’s driver did not resolve it, check the PC or motherboard manufacturer, whose package may be customized for that system:
- Open Settings → Windows Update → Advanced options → Optional updates.
- Install any Bluetooth, chipset, BIOS, UEFI, or firmware update offered for the computer.
- Restart and inspect the adapter in Device Manager.
- If nothing is offered, check the PC/motherboard manufacturer’s support page using the exact model number for current BIOS/UEFI, chipset, and wireless packages.
Firmware updates can restore unresponsive Bluetooth hardware, but BIOS/UEFI updates must match the exact computer model and should not be interrupted.^3^
If rollback is unavailable and the timing clearly identifies the update:
- Open Settings → Windows Update → Update history.
- Note the most recently installed update and its installation date.
- Under Related settings, select Uninstall updates.
- Select that recent update → Uninstall, then restart.
- Check Device Manager before pairing the headphones again.
Removing a security update temporarily removes its protections, and some updates cannot be uninstalled.^4^
There is currently no Microsoft release-health entry identifying Bluetooth Code 31 and headphone pairing as a confirmed general Windows 11 24H2 issue.^5^ A similar 24H2 Code 31 report exists in Microsoft Q&A, but it has no accepted or recommended resolution.^6^
If Code 31 remains after rollback, full shutdown, and applicable firmware/update rollback, contact the PC or adapter manufacturer with:
- Exact PC and Bluetooth-adapter model
- Current and previous driver versions from Properties → Driver
- Windows version from
winver
- The update identifier and installation date
- The complete Device status message
Until Code 31 is cleared, repeatedly removing and pairing the headphones is unlikely to address the adapter’s driver-load failure.
References
- [Windows 11](https://support.microsoft.com/windows/hardware/bluetooth/update-bluetooth-drivers-in-windows)
- Code 31 - CM_PROB_FAILED_ADD
- [Windows 11](https://support.microsoft.com/windows/hardware/bluetooth/fix-bluetooth-disappeared-in-windows#summary)
- [Windows 11](https://support.microsoft.com/windows/deployment/updates-lifecycle/how-to-uninstall-a-windows-update#summary)
- Windows 11, version 24H2 known issues and notifications | Microsoft Learn
- Bluetooth dongles not working in Windows 11 24H2 (error code 31) - Microsoft Q&A