Script to synchronize bluetooth link keys from macOS to windows. It generates a registry file for windows on macOS, which can afterwards be imported with the tool regedit in windows.
- Pair all your bluetooth devices to your Mac (e.g. keyboard, mouse, headphones)
- Open the Terminal and navigate to the folder where you have downloaded the file
BT-Linkkeysync.py
- Mark the script as executable with
sudo chmod +x BT-Linkkeysync.py
- Run the script with
sudo ./BT-Linkkeysync.py
(you will be asked for your password) - Store the generated file
btkeys.reg
file to a location accessible by windows. - Download psexec
and store it to
C:/Windows/System32/
- Run the command:
psexec -s -i regedit
- Import the file
btkeys.reg
- No need to reboot
- Use your keyboard on macOS and Windows
Test Environment:
- OSx86 Hackintosh with Asus BT-400 (USB-Bluetooth Adapter)
- macOS Sierra 10.12.1
- Windows 8.1 Prof
- Python 2.7
Tested Devices:
- Apple Magic Trackpad
- Apple Magic Keyboard
- Apple Magic Mouse
- LogiLink ID0032 Bluetooth Laser Mouse
BT 4.0 LE/Smart Devices (e.g. Logitech MX Master) do not work yet. If you know how to get it working feel free to contribute :)
Try the other way round (Pair on Windows and import in macOS) maybe get Bluetooth 4.0 LE Working
Related Blog Post on InsanelyMac of camoguy