Jamf customers: We are here for you. https://www.jamf.com/lp/remote-empowerment/
"How to Support a Remote Workforce" Jamf Nation Discussion https://www.jamf.com/jamf-nation/discussions/35323/
tell application "Microsoft Outlook" | |
make new address book in exchange account 1 with properties {name:"Company Contacts"} | |
make new contact with properties {first name:"Martin", last name:"Moose", email addresses:{{address:"[email protected]", type:work}, {address:"[email protected]", type:home}}} at address book "Company Contacts" of exchange account 1 | |
end tell |
# INSTRUCTIONS | |
# Create a folder on the Administrator Desktop named "Project" | |
# Run the script to generate the AES key | |
# Run the script to generate the Active Directory encrypted password file | |
# Run the script to generate the Jamf Pro encrypted password file | |
# Update the following variables: | |
# JamfProServer |
Model information: https://support.apple.com/en-us/HT211238 | |
Published Date: October 25, 2021 | |
Verification: https://regex101.com/r/7nnq4T/13 | |
This regex is complete. Apple is no longer creating Big Sur compatible Macs. | |
(MacBook(10|9|8)|MacBookAir(10|[6-9])|MacBookPro1[1-7]|Macmini[7-9]|MacPro[6-7]|iMacPro1),\d|iMac(14,4|1[5-9],\d|2[01],\d) | |
Resources for Jamf's "Script 201 for Apple Admins" webinar on June 18, 2020. | |
"Scripting 101 for Apple Admins" Webinar | |
Video: https://www.jamf.com/resources/webinars/scripting-101-for-apple-admins/ | |
Discussions: https://www.jamf.com/jamf-nation/discussions/32391/scripting-101-for-apple-admins-webinar | |
PDF reference: https://www.jamf.com/blog/scripting-basics-for-everyone/ | |
Time Zone script: | |
https://www.jamf.com/jamf-nation/third-party-products/files/836/settimezone-sh-set-the-time-zone |
#!/bin/sh | |
# wait until the Dock process has started | |
while [[ "$setupProcess" = "" ]] | |
do | |
echo "Waiting for Dock" | |
setupProcess=$( /usr/bin/pgrep "Dock" ) | |
sleep 3 | |
done |
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
[email protected] | |
https://gist.github.com/b99a43948c4784631e9ad60eb714c776 |
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
[email protected] | |
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e |
#!/bin/bash | |
# in Terminal run /path/to/script /path/to/Bundle.app | |
installedApp=$1 | |
# get the app's bundle identifier | |
bundleID=$( /usr/bin/defaults read "$installedApp/Contents/Info.plist" CFBundleIdentifier ) | |
# get the installation epoch date for the bundle identifier | |
installEpoch=$( /usr/sbin/pkgutil --pkg-info="$bundleID" | /usr/bin/grep "install-time" | /usr/bin/awk '{ print $2 }' ) |
Jamf customers: We are here for you. https://www.jamf.com/lp/remote-empowerment/
"How to Support a Remote Workforce" Jamf Nation Discussion https://www.jamf.com/jamf-nation/discussions/35323/
#!/bin/zsh | |
# provide for Big Sur and earlier | |
xpath() { | |
# the xpath tool changes in Big Sur | |
if [[ $( /usr/bin/sw_vers -buildVersion) > "20A" ]]; then | |
/usr/bin/xpath -e "$@" | |
else | |
/usr/bin/xpath "$@" | |
fi |