r/macsysadmin • u/fcjr • 2h ago
I made an open source tool to DFU restore macs from windows or linux, no second mac needed
Apple Configurator only runs on macOS. If your IT team is mostly on windows, someone ends up keeping a mac around just to revive and restore the others. I got sick of that, so I built restorekit.
The software is a cli and desktop app for macOS, windows and linux. Plug into the target's DFU port, run `sudo restorekit restore`, and it detects the mac, downloads the right firmware and restores it. It works on T2 and Apple Silicon. The desktop app restores several macs at once, keeps a history log and exports serials/ECIDs to CSV. The cli has `--json` on most commands for scripting.
The hardware part is dongle-lite. Putting a mac into DFU automatically takes a USB-PD message that PC ports can't send, so from windows or linux you'd normally be stuck doing the key combo. dongle-lite sits between your computer and the mac and sends it for you. It also gives you the target's serial console, which helps a lot when a restore fails and you want to know why.
Everything is free and open source: https://github.com/fcjr/restorekit
I just put another order in from my manufacturer for the dongle so if you are interested in grabbing one: join the batch 2 list at https://www.restorekit.org/#dongle
I'd love feedback!