From daba6237d2f15070c4ed2d6f09f6d65173eeb569 Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky Date: Tue, 16 Apr 2024 14:57:18 -0500 Subject: [PATCH] Fixing broken "macOS - Check if latest version" policy. (#18304) Fixing broken "macOS - Check if latest version" policy. Co-authored-by: Luke Heath --- it-and-security/lib/macos-device-health.policies.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/it-and-security/lib/macos-device-health.policies.yml b/it-and-security/lib/macos-device-health.policies.yml index 350b1f530f70..427ac7a149c0 100644 --- a/it-and-security/lib/macos-device-health.policies.yml +++ b/it-and-security/lib/macos-device-health.policies.yml @@ -65,11 +65,9 @@ resolution: Delete 1Password emergency kits from your computer, and empty the trash. 1Password emergency kits should only be printed and stored in a physically secure location. platform: darwin - name: macOS - Check if latest version - query: SELECT 1 WHERE - EXISTS ( - SELECT major, concat_ws(".", major, minor, patch) AS "macOS Version" FROM os_version --Sonoma WHERE - (major = "14" AND "macOS Version" < "14.4.1") - ); + query: | + SELECT 1 FROM os_version + WHERE (major > 14 OR (major = 14 AND minor > 4) OR (major = 14 AND minor = 4 AND patch >= 1)) --Sonoma critical: false description: This policy check if macOS version is most recent version available. resolution: From the Apple menu, select System Settings. Navigate to General > Software Update.