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/sh | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
#################################################################################################### | |
# Check to see if setregproptool exists in correct location. | |
if [ -f "/Library/Application Support/JAMF/bin/setregproptool" ]; | |
then |
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/sh | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
#################################################################################################### | |
## Install Sophos | |
/Library/Application\ Support/JAMF/ESCOSX/Sophos\ Installer.app/Contents/MacOS/tools/InstallationDeployer --install |
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
<?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> |
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 | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
#################################################################################################### | |
# | |
#################################################################################################### | |
# | |
# DEFINE VARIABLES & READ IN PARAMETERS |
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 | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
################################################################################################### | |
#Backup the original authorization file | |
sudo /bin/cp /etc/authorization /etc/authorization.original.backup |
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 | |
#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 |
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 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 |
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 | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
################################################################################################### | |
# | |
#################################################################################################### | |
# | |
# DEFINE VARIABLES & READ IN PARAMETERS |
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/sh | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
#################################################################################################### | |
# Get the logged in users username | |
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'` |
NewerOlder