06-28-2021 09:00 AM - edited 03-30-2022 03:34 PM
Hi folks!
I've posted a gist on GitHub that includes two regexes you can use to identify Monterey compatible Macs in your organization.
It has two slightly different strings. You can use either regex in Jamf Pro in Advanced Computer Searches or Smart Computer Groups. Add the Model Identifier criterion to a new search or smart group, set the operator to "matches regex" and paste in one of the two regex strings.
Which regex string should you use?
The first string matches Mac models that are available today. It's more exact but won't match any new Mac models without updating it as new models are released. The second is more future-proof and will match future Mac models. However, when Apple releases the next major macOS version after Monterey and new Mac models in Fall 2022, this string will eventually become out-of-date and incorrect.
If you'd like to see what Mac hardware models these regexes will match, have a look at this link: https://regex101.com/r/OozSRv/6.
Posted on 11-01-2021 12:15 PM
Hi folks!
Just a quick note to let anyone who’s using the regex strings above know I’ve updated it with a couple new MacBook Pro models Apple added to the list October 27.
If you’ve been using the “more exact” regex string, you’ll want to update from either of the links in the original message.
If you’ve been using the “more future proof” string, there’s nothing to do.
Posted on 03-30-2022 11:37 AM
The original link no longer seems to work
03-30-2022 03:33 PM - edited 03-30-2022 03:35 PM
Try this link. Apple recently updated their list of supported models to include the new Mac Studio.
https://gist.github.com/talkingmoose/74731895981b14da4ce1d524eeebdf1d
I'll also update my original post.
Posted on 08-26-2022 01:35 AM
Is there a updated version that's supports M2 machines?
Posted on 08-26-2022 08:21 AM
Just updated the regex to include Macs added since June 2022.