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 | |
| :<<ABOUT_THIS_SCRIPT | |
| ------------------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/b99a43948c4784631e9ad60eb714c776 |
| #!/bin/bash | |
| <<ABOUT_THIS_SCRIPT | |
| ------------------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| 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 |
| #!/bin/zsh | |
| :<<'ABOUT_THIS_SCRIPT' | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/talkingmoose/5336e69480d87014a4c2ea1d6ec0ea4e |
| #!/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 |
| #!/bin/bash | |
| function logresult() { | |
| if [ $? = "0" ] ; then | |
| echo "$1" | |
| else | |
| echo "$2" | |
| exit 1 | |
| fi | |
| } |
| #!/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 |
| #!/bin/bash | |
| # server connection information | |
| URL="https://talkingmoose.jamfcloud.com" | |
| userName="API-Editor" | |
| password="P@55w04d" | |
| # number of days from now that the extension attribute can be safely deleted because of non-use | |
| deleteInDays="30" |