Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Check to see if setregproptool exists in correct location.
if [ -f "/Library/Application Support/JAMF/bin/setregproptool" ];
then
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
## Install Sophos
/Library/Application\ Support/JAMF/ESCOSX/Sophos\ Installer.app/Contents/MacOS/tools/InstallationDeployer --install
<?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>password</key>
<string>b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1326af5a2ea6d103fd07c95385ffab0cacbc86</string>
<key>workflows</key>
<array>
<dict>
<key>name</key>
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#
####################################################################################################
#
# DEFINE VARIABLES & READ IN PARAMETERS
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
###################################################################################################
#Backup the original authorization file
sudo /bin/cp /etc/authorization /etc/authorization.original.backup
#!/bin/bash
#Backup the original authorization file
/bin/cp /etc/authorization /etc/authorization.original.backup
#Modify /etc/authorization to allow any member of the everyone group access to unlock preferences
/usr/libexec/PlistBuddy -c "Set :rights:system.preferences:group everyone" /etc/authorization
/usr/libexec/PlistBuddy -c "Set :rights:system.preferences:shared true" /etc/authorization
## Get the Macs UUID
set macUUID to do shell script "system_profiler SPHardwareDataType | grep 'Hardware UUID' | awk '{print $3}'"
log "Retreived this Macs UUID..."
## Try to delete the local items Keychain db's
try
do shell script "rm -rf ~/Library/Keychains/" & macUUID & "/*"
end try
## Delete the login Keychain
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
###################################################################################################
#
####################################################################################################
#
# DEFINE VARIABLES & READ IN PARAMETERS
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Get the logged in users username
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
###
# Returns a list of all folders found under /Users
###