Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
#!/bin/bash | |
# server connection information | |
URL="https://talkingmoose.jamfcloud.com" | |
username="API-Editor" | |
password="P@55w0rd" | |
# provide the Jamf Pro ID of the PreStage Enrollment; look in the URL when viewing the PreStage Enrollment | |
prestageID="1" |
Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e |
https://www.apple.com/macos/macos-sequoia-preview/ | |
Published Date: June 10, 2024 | |
Updated June 28, 2024 | |
Verification: https://regex101.com/r/bNOMXz/4 | |
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
^(Mac(1[345]|BookPro1[5-8]|BookAir(9|10)|Pro7)|iMac(Pro1|(19|2[01]))|Macmini[89]),\d+$ |
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Technical Enablement Manager | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/9f4638932df28c4bebde5dd47be1812a |
#!/bin/zsh | |
:<<'ABOUT_THIS_SCRIPT' | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Partner Program Manager | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/b6637160b65b751824943ede022daa17 |
#!/bin/bash | |
# server connection information | |
URL="https://talkingmoose.jamfcloud.com" | |
userName="API-Editor" | |
password="P@55w0rd" | |
httpErrorCodes="200 Request successful | |
201 Request to create or update object successful | |
400 Bad request |
https://www.apple.com/ios/ios-18-preview/ | |
https://www.apple.com/ipados/ipados-18-preview/ | |
https://www.apple.com/watchos/watchos-preview/ | |
Published Date: June 10, 2024 | |
Updated June 19, 2024 | |
Verification: https://regex101.com/r/0UDJHk/6 |
https://support.apple.com/en-us/HT213772 | |
Published Date: March 8, 2024 | |
Verification: https://regex101.com/r/GCfKMt/11 | |
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
^(Mac(1[345]|BookPro1[5-8]|BookAir([89]|10)|Pro7)|iMac(Pro1|(19|2[01]))|Macmini[89]),\d+$ | |
2) Current or higher regex — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof). |
#!/bin/zsh | |
# set -x # show command | |
# trap read debug # require a RETURN after each command | |
# download mobile device data from Jamf | |
xml=$( /usr/bin/curl \ | |
--silent \ | |
--url https://hw-model-names.services.jamfcloud.com/1/mobileDeviceModels.xml ) |