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
# initiate Policy with CUSTOM EVENT. | |
sudo jamf policy -event Issue_New_FV_Recovery_Key |
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
# open global gitconfig with Atom editor | |
open -a /Applications/Atom.app/ ~/.gitconfig | |
# set nano as editor | |
git config --global core.editor nano |
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://scriptingosx.com/2017/02/the-macos-open-command/ |
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
# url: https://scriptingosx.com/2018/02/setting-the-path-in-scripts/ | |
# Jamf scripts command path | |
#!/bin/bash | |
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/jamf/bin |
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
# more info here: | |
# https://www.cyberciti.biz/faq/run-execute-sh-shell-script/ | |
# Set execute permission on your script: | |
chmod +x script-name-here.sh | |
# To run your script, enter: | |
./script-name-here.sh | |
# OR | |
sh script-name-here.sh | |
# OR |
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/bash | |
# ##################################################################################################################################### | |
# Run this as root on your DEP testing computer, it'll bring it back to a state that will kick off DEP on reboot. Also, VMs will be your friend as well | |
# | |
# source: https://www.jamf.com/jamf-nation/discussions/26940/what-is-your-dep-test-environment-look-like#responseChild159889 | |
# | |
# ##################################################################################################################################### | |
# Remove .AppleSetupDone Allows the Setup Assistant to show again | |
rm /var/db/.AppleSetupDone |
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
# get mac serialnumber | |
ioreg -l | grep IOPlatformSerialNumber |
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://macmule.com/2015/11/16/making-downloaded-jss-configuration-profiles-readable/ | |
openssl smime -inform DER -verify -in /path/to/downloaded.mobileconfig -noverify -out /path/to/de-signed.mobileconfig | |
plutil -convert xml1 /path/to/de-signed.mobileconfig |
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.jamf.com/jamf-nation/discussions/16614/reboot-machines#responseChild97418 | |
jamf reboot -minutes 10 -message "Your Mac will reboot in 10 minutes to maintain smooth working order. Please close any open work now to avoid data loss of unsaved documents." -background |
NewerOlder