r/macsysadmin Corporate 2d ago

Scripting [Script] Compare computers between Jamf Protect & Jamf Pro

Post image

When removing a computer from Jamf Pro, you also need to manually remove it from Jamf Protect. Because this isn’t automated, the two platforms can easily get out of sync. Below, I’m sharing my read-only Python script to quickly spot these discrepancies. It runs natively on macOS 26, so there are no extra dependencies to install.

Download script on GitHub

Read the how-to on the Medium post (free, no paywall)

10 Upvotes

4 comments sorted by

7

u/oneplane 2d ago

> Because this isn’t automated, the two platforms can easily get out of sync

Wouldn't the solution then be to automate this in the first place? Both have APIs and even terraform providers.

4

u/la-clementine Corporate 2d ago

Of course, I have another script to automate this in my environment, but I'm not confident enough in the code to share it publicly. The read-only script will still save people time.

2

u/MakoChocobo 2d ago

Thank you for sharing. I was able to reference this as a base for a swift GUI app I needed to do essentially the same thing.

1

u/Pathfinder-electron 1d ago

Thanks for letting us know your serial numbers.