This file contains 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
### I think this is what Addigy is running to "Heal" the MDM connection | |
sudo launchctl kickstart -k system/com.apple.mdmclient.daemon |
This file contains 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
shasum -a 256 /PATH/TO/PKG |
This file contains 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/sh | |
# This script will create an account in Google Apps or whatever it's called now, it adds them to their groups and then creates an account on ManageBac | |
# Usage ./Onboarding\ newstaff.sh -f Jean-Luc -l Picard -o "/Teachers" | |
# -o can be "/Teachers" or "/Admin Staff" | |
while getopts "f:l:o:" opt; do | |
case $opt in | |
f) FIRSTNAME=$OPTARG ;; |
This file contains 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/sh | |
# Usage ./Onboarding\ students.sh -f Jean-Luc -l Picard -g 2040 | |
# -g is the year the student graduates, as emails look like jean-luc.p@2040.domain.com | |
# -g is also used to put them in the right OU which is /Students/2040Grads | |
while getopts "f:g:l:" opt; do | |
case $opt in | |
f) FIRSTNAME=$OPTARG ;; | |
g) GRAD=$OPTARG ;; |
This file contains 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/sh | |
# usage ./Email\ reset.sh -e username@domain.com | |
while getopts "e:" opt; do | |
case $opt in | |
e) EMAIL=$OPTARG ;; | |
*) echo 'error' >&2 | |
exit 1 | |
esac |
This file contains 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
model=$(sysctl hw.model) | |
if echo $model | grep -Ei "(MacBookAir[6-9]|MacBookPro1[0-6]|MacPro[6-7]|MacBook(10|9|8)|Macmini[7-8]|MacPro[6-7]|iMacPro1),\d|iMac1(4,4|[5-9],\d)" ; then | |
echo "macOS 11 Compatible" | |
else | |
echo "macOS 11 Incompatible" | |
fi |