From d8b3dbbc480ae48dce359a307e934cd5e3b30cfe Mon Sep 17 00:00:00 2001 From: Howard Griffith Date: Wed, 11 Jun 2025 12:09:46 -0500 Subject: [PATCH 1/4] Update Get-LatestOSSupported.sh for macOS Tahoe First attempt at adding support for macOS Tahoe to script. --- .../Get-LatestOSSupported.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh index a818bee..f8f4696 100644 --- a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh +++ b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh @@ -77,6 +77,7 @@ not_monterey_regex="^(MacPro[1-5],[0-9]|iMac([1-9]|1[0-5]),[0-9]|(Macmini|MacBoo not_ventura_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-7]),[0-9]|(Macmini|MacBookAir)[1-7],[0-9]|MacBook[1-9],[0-9]|MacBookPro([1-9]|1[0-3]),[0-9])$" not_sonoma_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-8]),[0-9]|(Macmini|MacBookAir)[1-7],[0-9]|MacBook[0-9,]+|MacBookPro([1-9]|1[0-4]),[0-9])$" not_sequoia_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-8]),[0-9]|Macmini[1-7],[0-9]|MacBookAir[1-8],[0-9]|MacBookPro([1-9]|1[0-4]),[0-9])$" +not_tahoe_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-9]),[0-9]|Macmini[1-8],[0-9]|MacBookAir[1-9],[0-9]|MacBookPro([1-9]|1[0-5]),[0-9])$" ################################################## # Setup Functions @@ -121,8 +122,10 @@ model_check() { echo "Ventura*" elif [[ $model =~ $not_sequoia_regex ]]; then echo "Sonoma*" - else + elif [[ $model =~ $not_tahoe_regex ]]; then echo "Sequoia*" + else + echo "Tahoe*" fi } @@ -351,6 +354,13 @@ storage_check() { # Set the required free space to compare. # Set space requirement in bytes: /usr/bin/bc <<< " * 1073741824" case "${validate_os}" in + "Tahoe*"* ) + # Value's inherited from Monterey, Apple has not defined these requirements + required_free_space_newer="27917287424" # 26GB if Sierra or later + os_newer="10.12.0" + required_free_space_older="47244640256" # 44GB if El Capitan or earlier + os_older="10.11.0" + ;; "Sequoia*"* ) # Value's inherited from Monterey, Apple has not defined these requirements required_free_space_newer="27917287424" # 26GB if Sierra or later @@ -462,6 +472,9 @@ fi model_result=$( model_check "${mac_model}" ) case "${model_result}" in + "Tahoe*" ) + version_string="26" + ;; "Sequoia*" ) version_string="15" ;; @@ -522,4 +535,4 @@ fi echo "${report_result}" write_to_ea_history "latest_os_supported" "${model_result}" -exit 0 \ No newline at end of file +exit 0 From 275ec77b500fccf03c075d45d258d2928e547b28 Mon Sep 17 00:00:00 2001 From: Howard Griffith Date: Wed, 11 Jun 2025 13:07:28 -0500 Subject: [PATCH 2/4] Update Get-LatestOSSupported.sh additional updates --- Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh index f8f4696..aa412ee 100644 --- a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh +++ b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh @@ -144,6 +144,11 @@ os_check() { # For all models except MacPro5,1... if [[ + "${validate_os}" == "Tahoe*" && \ + ( "${os_major}" -ge 11 || "${os_major}" -eq 10 && "${os_minor}" -ge 9 ) + ]]; then + echo "Tahoe*" + elif [[ "${validate_os}" == "Sequoia*" && \ ( "${os_major}" -ge 11 || "${os_major}" -eq 10 && "${os_minor}" -ge 9 ) ]]; then @@ -264,7 +269,7 @@ ram_check() { system_ram=$(( $( /usr/sbin/sysctl -n hw.memsize ) / bytes_in_gigabytes )) if [[ - "${validate_os}" =~ ^(Catalina|Big[[:space:]]Sur|Monterey|(Ventura|Sonoma|Sequoia)\*)$ + "${validate_os}" =~ ^(Catalina|Big[[:space:]]Sur|Monterey|(Ventura|Sonoma|Sequoia|Tahoe)\*)$ ]]; then # OS version requires 4GB RAM minimum. For Ventura and newer, value's are inherited from # Monterey as Apple has not publicly defined these requirements. From e3d505e1a61bd1cc71a68ca0bb4f8798f9c0f8da Mon Sep 17 00:00:00 2001 From: Howard Griffith Date: Thu, 11 Sep 2025 16:21:25 -0500 Subject: [PATCH 3/4] Additional updates Incorporated some additional updates to my pull request based on comment feedback --- Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh index aa412ee..8732ba3 100644 --- a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh +++ b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh @@ -22,7 +22,8 @@ # updated. # # System Requirements can be found here: -# Sequoia (Preview) - https://www.apple.com/macos/macos-sequoia-preview/ +# Tahoe - https://www.apple.com/os/macos/ +# Sequoia - https://support.apple.com/en-us/120282 # Sonoma - https://support.apple.com/en-us/105113 # Ventura - https://support.apple.com/en-us/102861 # * Apple has never publicly posted storage requirements for Ventura, which is why this @@ -77,7 +78,7 @@ not_monterey_regex="^(MacPro[1-5],[0-9]|iMac([1-9]|1[0-5]),[0-9]|(Macmini|MacBoo not_ventura_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-7]),[0-9]|(Macmini|MacBookAir)[1-7],[0-9]|MacBook[1-9],[0-9]|MacBookPro([1-9]|1[0-3]),[0-9])$" not_sonoma_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-8]),[0-9]|(Macmini|MacBookAir)[1-7],[0-9]|MacBook[0-9,]+|MacBookPro([1-9]|1[0-4]),[0-9])$" not_sequoia_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-8]),[0-9]|Macmini[1-7],[0-9]|MacBookAir[1-8],[0-9]|MacBookPro([1-9]|1[0-4]),[0-9])$" -not_tahoe_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-9]),[0-9]|Macmini[1-8],[0-9]|MacBookAir[1-9],[0-9]|MacBookPro([1-9]|1[0-5]),[0-9])$" +not_tahoe_regex="^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-9]),[0-9]|iMacPro1,1|Macmini[1-8],[0-9]|MacBookAir[1-9],[0-9]|MacBookPro((16,3)|([1-9]|1[0-5]),[0-9]))$" ################################################## # Setup Functions From 5a1e2dee964b905e32e24e6d4727755a917f7e1b Mon Sep 17 00:00:00 2001 From: Zack T Date: Fri, 3 Oct 2025 14:44:20 -0700 Subject: [PATCH 4/4] Bump version string And add Tahoe URL --- Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh index 8732ba3..b9f45ac 100644 --- a/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh +++ b/Jamf Pro/Extension Attributes/Get-LatestOSSupported.sh @@ -4,7 +4,7 @@ #################################################################################################### # Script Name: Get-LatestOSSupported.sh # By: Zack Thompson / Created: 9/26/2017 -# Version: 2.6.1 / Updated: 6/11/2024 / By: ZT +# Version: 2.7.0 / Updated: 6/11/2025 / By: @HowardGMac # # Description: A Jamf Pro Extension Attribute to check the latest compatible version of macOS. # @@ -22,7 +22,7 @@ # updated. # # System Requirements can be found here: -# Tahoe - https://www.apple.com/os/macos/ +# Tahoe - https://support.apple.com/en-us/122867 # Sequoia - https://support.apple.com/en-us/120282 # Sonoma - https://support.apple.com/en-us/105113 # Ventura - https://support.apple.com/en-us/102861