You’ll find everything you need in these workshop resources. Keep this page handy!
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
| https://www.apple.com/os/macos/ | |
| Published Date: June 8, 2026 | |
| Updated: June 10, 2026 | |
| Verification: https://regex101.com/r/GRwi7n/3 | |
| 1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
| ^(Mac(BookPro1[78]|1[3-7]|BookAir10|mini9),\d+|iMac21,\d+)$ |
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/zsh | |
| # create a list of local usernames (non-AD) with UIDs between 500 and 1024 | |
| usernames=( $( /usr/bin/dscl /Local/Default -list /Users uid | /usr/bin/awk '$2 >= 501 && $2 <= 1024 { print $1 }' ) ) | |
| for aUser in $usernames | |
| do | |
| echo "Evaluating user account $aUser" | |
| # get home directory for user account |
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/zsh | |
| <<ABOUT_THIS_SCRIPT | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/talkingmoose/67e5fb6b62855a169eca13e5efb3ba35 |
Thanks for coming today!
You’ll find everything you need in these workshop resources. Keep this page handy! *
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
| https://www.apple.com/os/ios/ | |
| https://www.apple.com/os/ipados/ | |
| https://www.apple.com/os/watchos/ | |
| Published Date: June 9, 2025 | |
| Updated: April 7, 2026 | |
| Verification: https://regex101.com/r/tYaV8u/5 |
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
| https://support.apple.com/en-us/122867 | |
| Published Date: March 10, 2026 | |
| Updated: March 19, 2026 | |
| Verification: https://regex101.com/r/YXAchM/9 | |
| 1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
| ^Mac((BookPro1(6,[124]|[78],\d)|(1[3-7]|BookAir10|mini9|Pro7),\d+))|iMac2[01],\d+$ |
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/zsh | |
| # set -x | |
| :<<ABOUT_THIS_SCRIPT | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Partner Program Manager | |
| Jamf | |
| bill@talkingmoose.net |
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/zsh | |
| # get last reboot date and time | |
| lastReboot=$( /usr/bin/last -y reboot ) | |
| # extract date and time (e.g. Thu Dec 12 2024 08:35) | |
| rebootTime=$( /usr/bin/awk -F '[[:space:]]{3,}' 'NR==1 { print $2 }' <<< "$lastReboot" ) | |
| # convert date and time to ISO date format | |
| lastRebootISO=$( /bin/date -j -f "%a %b %e %Y %H:%M" "$rebootTime" '+%Y-%m-%d %I:%M:00' ) |
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/zsh | |
| :<<ABOUT_THIS_EXTENSION_ATTRIBUTE | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Technical Enablement Manager | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/talkingmoose/4a2b613bf5273081459bc62c644193eb |
NewerOlder
