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
curl -X POST -H 'Content-type: application/json' --data '{"username": "Clever Name Here","icon_emoji": ":fancy_cat:","text": "Hello, this is your daily reminder that a thing just happened!","channel": "XXXXxXXXx"}' https://hooks.slack.com/services/full/URL/of/configured/incomingwebhook |
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/bash | |
### | |
# | |
# Name: recreate_keychain.sh | |
# Description: This script deletes the user's login.keychain, prompts | |
# the current user for their password, and then creates | |
# a new keychain. Uses Applescript dialog and jamfHelper | |
# for notifications and password prompt. | |
# Note: Password prompt via Applescript from Elliot Jordan (github.com/homebysix), |
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/bash | |
### | |
# | |
# Name: nomad_update.sh | |
# Description: This script checks that NoMAD.app is installed, then does the following: | |
# 1- Checks for OS version to run correct launchctl method. | |
# 2- Unloads the NoMAD LaunchAgent in the user context. | |
# 3- Runs a .pkg installer of the new NoMAD version on secondary/helper policy | |
# with custom trigger 'update_nomad'. |
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/bash | |
### | |
# | |
# Name: management-action-by-policy.sh | |
# Description: This script is designed to run with policies to use | |
# Management Action.app to send a push notification to | |
# a managed Mac. | |
# Use: 1- Add script to Jamf Pro server, and optionally add | |
# parameter lables that match the parameters below. |
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
log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>This profile allows vmware-tools-daemon to access Accessibility.</string> | |
<key>PayloadDisplayName</key> |
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
function checkJPSConnection { | |
n=0 | |
until [[ $n -ge 12 ]]; do | |
checkAvailablity=$(${jamfBinary} checkJSSConnection) | |
# Function exitStatus | |
if [[ $checkAvailablity == *"${jps}"* ]]; then | |
echo "${jps} is available, continuing..." | |
break | |
else | |
echo "${jps} is unavailable at this time. Suspending until next interval..." |
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/bash | |
nameString="$4" # What to put in a name string | |
plistName="$5" # Name of the plist file (e.g., com.planetexpress.expendable.plist) | |
plistPath="$6" # Path to plist file (e.g., /Users/Shared/Careerchips) | |
currentDate=$(date +"%Y-%m-%d %H:%M:%S") # Creates date in format Jamf can use for date-based data type EA | |
defaults write $plistPath/$plistName name "$nameString" # Double-duty: will make plist if doesn't exist, then write the value! | |
defaults write $plistPath/$plistName date "$currentDate" # Date can be used in Jamf EA with "Date" data type. |
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
# run this in the "execute command" field of a policy in leu of the "complete" message if you want to add a title/subtitle | |
# can also be put in a bash/shell script | |
# use single-quotes if you use an exclamation point or other special characters, otherwise double-quotes are fine | |
/Library/Application\ Support/JAMF/bin/Management\ Action.app/Contents/MacOS/Management\ Action -title "Action Required: Do a thing" -subtitle "No really, this is required." -message 'Comply or get a Justin Bieber desktop background!' |
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 | |
# | |
# originally by jhbush jamfnation and macadmins slack #jamfnation | |
# modified by emilyk | |
# 2015-08-20 | |
# | |
currentUser=`ls -l /dev/console | awk {' print $3 '}` | |
if [ -d "/Applications/OmniGraffle.app" ]; then | |
result=`cat /Users/$currentUser/Library/Containers/com.omnigroup.OmniGraffle6/Data/Library/Application\ Support/Omni\ Group/Software\ Licenses/OmniGraffle*.omnilicense | grep -A 1 Key | grep string | sed 's/<string>//g' | sed 's/<\/string>//g' | awk '{print $1}'` |