Mac Activation Lock Status Script/EA

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 10-17-2019 11:13 AM
I am not sure where I saw the request for macOS Catalina on a Mac with a T2 Security Chip showing Activation Lock Status, but we are using the enclosed script/EA
!/bin/bash
HISTORY
Version: 1.0
Created by HCS Technology Group on October 17, 2019
This will report the chip type in the mac computer. IE.. T1, T2
Chip="$(system_profiler SPiBridgeDataType | awk -F: '/Model Name/ {print $NF}' | sed 's/^ *//')"
This will report the Activation lock status.
activationLockStatus=$(/usr/sbin/system_profiler SPHardwareDataType | awk '/Activation Lock Status/{print $NF}')
If the chip type is T2, check to see if activation lock is enabled on the mac. If not, then exit.
if [[ $Chip != "Apple T2 Security Chip" ]]; then
exit
else
echo "<result>$activationLockStatus</result>"
fi
Labels:
- Labels:
-
Jamf Pro
Reply
0 REPLIES 0
