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
249 stars 55 forks source link

"Restart" option that falls back to "wait" if there are failures. #82

Closed beatlemike closed 1 year ago

beatlemike commented 1 year ago

Is your feature request related to a problem? Please describe. When running SYM with "Restart" as a Completion Action, it would be nice if it would fall back to "wait" instead

Describe the solution you'd like When SYM finishes after encountering validation errors but has the "Restart" Completion Action, I would like it to fall back to "wait" so the tech or user can make sure the necessary policies are run manually in self service.

Describe alternatives you've considered I have just been using wait for now, my techs really want it to just restart for a better chance of FileVault being immediately enabled afterward.

dan-snelson commented 1 year ago

Greetings, @beatlemike!

Unless I'm misunderstanding this FR, I'm confident SYM already works as requested.

If completionActionOption (Parameter 7) is set to Restart and there are failures (i.e., "${jamfProPolicyTriggerFailure}" == "failed"), you'll hit a built-in wait

(The blurscreen option is purposely omitted from dialogFailureCMD and you could leave the so-called Failure dialog open the tech can remediate as required (i.e., manually login to Self Service).)

dan-snelson commented 1 year ago

@beatlemike:

Will you please test Setup Your Mac 1.12.0 ?

beatlemike commented 1 year ago

@dan-snelson

Tested on 1.12.1 and this works great.

dan-snelson commented 1 year ago

Addressed in Setup Your Mac 1.12.0.