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 | |
# geoff repoli | |
# customize this variable with relatively unique + identifiable string that matches the process(es) | |
# you want to terminate. not case-sensitive. for example: | |
# for all microsoft applications + background services: application="microsoft" | |
# for microsoft outlook: application="outlook" OR application="microsoft outlook" | |
application="your string goes here" | |
# get pids of any running microsoft processes |
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 | |
######################################################################## | |
# Author: Calum Hunter # | |
# Date: 21/12/2016 # | |
# Version: 0.7 # | |
# Purpose: Fusion Drive Detection and general HD formatting before # | |
# imaging tasks. # | |
# # | |
######################################################################## |
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: shard.sh | |
# Description: This Casper extension attribute takes a Mac serial | |
# number as input and uses that serial number to output a | |
# number from 0 to 9. This can be useful in scoping Casper | |
# policies to a specific percentage of the fleet. | |
# Author: Elliot Jordan <elliot@elliotjordan.com> |
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>PayloadContent</key> | |
<dict> | |
<key>com.apple.touristd</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
#!/bin/sh | |
## RipOff-McAfee.sh | |
## version 2.0 | |
## | |
## Author: Adam Scheblein, McAfee IT | |
## E-Mail: adam_scheblein@mcafee.com | |
## | |
## version 2.1 mods by Steve Dagley <@sdagley Jamf Nation/Twitter/MacAdmins Slack> | |
## Updated launchctl calls to use bootout instead of unload |
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 | |
function logresult() { | |
if [ $? = "0" ] ; then | |
echo "$1" | |
else | |
echo "$2" | |
exit 1 | |
fi | |
} |
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 | |
# Install PrivilegedHelper and LaunchDaemon for the McAfee ENS 10.7.1 version of | |
# McAfee Agent Status Monitor.app so users aren't prompted for admin credentials to | |
# do the install the first time they select the app from the McAfee Menulet | |
helperSourcePath="/Library/Application Support/McAfee/MSS/Applications/McAfee Agent Status Monitor.app/Contents/Library/LaunchServices/com.mcafee.agentMonitor.helper" | |
helperDestinationPath="/Library/PrivilegedHelperTools/com.mcafee.agentMonitor.helper" | |
if [ -f "$helperSourcePath" ] && [ ! -f "helperDestinationPath" ]; then |
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 | |
## postinstall | |
# McAfeeENS10.7.1postinstall.bash | |
# by Steve Dagley <@sdagley Jamf Nation/Twitter/MacAdmins Slack/GitHub> | |
# postinstall script for single install package for complete install of McAfee ENS 10.7.1 | |
# | |
# Incorporate RipOff_Mcafee V2.1 script from MacAdmins Slack #mcafee channel | |
# |
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/zsh | |
enrollmentStatus=$( /usr/bin/defaults read '/Library/Preferences/EarlyAdopter.plist' Enrolled ) | |
echo "<result>$enrollmentStatus</result>" |
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
https://support.apple.com/en-us/HT213772 | |
Published Date: November 15, 2023 | |
Verification: https://regex101.com/r/GCfKMt/9 | |
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
^(Mac(1[345]|BookPro1[5-8]|BookAir([89]|10)|Pro7)|iMac(Pro1|(19|2[01]))|Macmini[89]),\d+$ | |
2) Current or higher regex — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof). |
OlderNewer