Last active
December 8, 2021 15:28
-
-
Save mpanighetti/4f3a6489901a68eeeb1f7bc904fd22c3 to your computer and use it in GitHub Desktop.
Controller Model - Jamf Pro extension attribute. Returns the model name of the built-in controller (e.g. Apple T2 Security Chip), or null if the Mac doesn't have a controller.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "<result>$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/awk -F": " '/Model Name/ {print $NF}')</result>" | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment