dan-snelson / dialog-scripts

Scripts with leverage Bart Reardon's swiftDialog
MIT License
110 stars 35 forks source link

Add Pre-flight Check for OS version #31

Closed mani2care closed 1 year ago

mani2care commented 1 year ago

Hi Dan , really wonderful script to onboard the macOS via enrolment trigger or DEP .

one consent my location users macs are BYOD setup and some of talented users are having old version of Mac OS catalina and below. They will not read the instructions during the enrolment. Sometimes users are enrolled to JAMF and setup your mac script will be failed due to swift dialog compatibility.

Might be your able to add the limitation it will help us to use it without any error. If in case users is old version just to run a policy trigger and exit with JAMF dialog as complete.

2)And we need a built in automation for the swift dialog version validation. If in case I am using old versions of swifdialog and install it latest version so it will help us to additional effort to do Swiftdialogversion =$8any version /Autoupdate get always latest xyz version.

dan-snelson commented 1 year ago

Thanks for the double Feature Request, @mani2care; will you please open a separate issue for Item No. 2?

As discussed in the MacAdmins Slack #setup-your-mac Channel, we're handling this use-case at the Jamf Pro Policy level; computers which enroll with OSes of macOS 10.15.7 Catalina and earlier only see two policies:

  1. Update Inventory
  2. Upgrade to macOS Ventura

In the meantime, you're welcome to use this and this.

dan-snelson commented 1 year ago

Revised Issue Title

dan-snelson commented 1 year ago

@mani2care:

Please test-drive 1.7.0-rc4 (which is not production-ready):

Screen Shot 2023-01-21 at 10 48 01 AM
SirDrSpiderpig commented 1 year ago

I also think macOS validation would be awesome since we’re constantly chasing zero days and need to make sure new builds are at latest level.

dan-snelson commented 1 year ago

@SirDrSpiderpig: Currently, the check is just to confirm the Mac can run swiftDialog.

dan-snelson commented 1 year ago

@mani2care and @SirDrSpiderpig:

Please test-drive 1.7.0-rc5 which introduces the ability to specify a requiredMinimumBuild.

Screen Shot 2023-01-25 at 7 13 56 AM Screenshot 2023-01-25 at 7 14 35 AM
SirDrSpiderpig commented 1 year ago

Will do and report back.

mani2care commented 1 year ago

I need some time to test due to test device unavailability 🥺

On Wed, 25 Jan 2023 at 8:11 PM, SirDrSpiderpig @.***> wrote:

Will do and report back.

— Reply to this email directly, view it on GitHub https://github.com/dan-snelson/dialog-scripts/issues/31#issuecomment-1403726362, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMUGJUYYVFBUZXTS2NNAOIDWUE3QRANCNFSM6AAAAAAUCH5TXE . You are receiving this because you were mentioned.Message ID: @.***>

-- Thanks & Regards,

Manikandan R Contact: +91-9902103878 E-mail: @.***

SirDrSpiderpig commented 1 year ago

Downloaded it now and will tear on Jamf cloud beta instance.

If I can suggest to make the requireMinimumbuild variable added as part of the script variables in Jamf so it can be updated by the policy as opposed to going into the code. Just like debug and welcome screen are.

Will report back after testing

dan-snelson commented 1 year ago

Thanks for the prompt feedback, @SirDrSpiderpig.

How frequently do you see yourself updating requiredMinimumBuild ?

SirDrSpiderpig commented 1 year ago

Anytime there is a zero day. This year we’ve have plenty of those that kept us scrambling

dan-snelson commented 1 year ago

Ah, OK.

Currently, requiredMinimumBuild is at Line 44 and the Script Parameters don't start until Line 148.

dan-snelson commented 1 year ago

@SirDrSpiderpig:

In case it helps, 1.7.0-rc6 includes a yet-to-be-tested requiredMinimumBuild="${8:-"22D"}".

dan-snelson commented 1 year ago

Catalina

Screen Shot 2023-01-25 at 9 42 52 AM Screen Shot 2023-01-25 at 9 42 57 AM

Ventura

Screenshot 2023-01-25 at 9 43 13 AM Screenshot 2023-01-25 at 9 43 23 AM
SirDrSpiderpig commented 1 year ago

Looking good!

dan-snelson commented 1 year ago

Just uploaded a screencast for 1.7.0's new Outdated OS Action.

dan-snelson commented 1 year ago

Addressed in 1.7.0.