Monterey Compatible Macs (regex)

talkingmoose
Moderator
Moderator

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.

4bcf470e3d63469e956e168148bfa52d

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.

5 REPLIES 5

talkingmoose
Moderator
Moderator

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.

The original link no longer seems to work 

talkingmoose
Moderator
Moderator

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.

kcadm
New Contributor II

Is there a updated version that's supports M2 machines?

Just updated the regex to include Macs added since June 2022.