setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
246 stars 54 forks source link

Have to 2 separate ComputerNames for 2 separate regions in our Company #5

Closed midiman1000 closed 1 year ago

midiman1000 commented 1 year ago

Love the work....BTW. I've configured the regex Computer Name at enrollment and is very strict so EU's do not get this wrong. Works perfectly...! Turns out that one region of the company has a different naming convention for their Macs. Is it possible to have two regex entries or should I add the scutil commands later in the script with some if logic and run it from there. Just a thought.

Much appreciated and thank you.

GadgetGeekNI commented 1 year ago

Would it be easier to automatically generate the computer name based on an Office selection dropdown and have an if else for the regex statement in line to ensure that office 1 gets regex 1 and office 2 gets regex 2?

dan-snelson commented 1 year ago

@midiman1000:

Thanks for opening an issue and for sharing your use-case.

After counseling with another respected Mac Admin, I'm going to close this issue as "not planned" and invite you to review the Support information for SYM.

dan-snelson commented 1 year ago

(Internally, we’re using Pico’s get_marketing_model_name.sh to name our computers; the computer name field in the public version of SYM is provided as a courtesy.)

midiman1000 commented 1 year ago

Many thx!!