View McAfeeENS10.7.1postinstall.bash
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 | |
# |
View Install McAfee Agent Status Monitor PrivilegedHelper.sh
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 |
View RipOff-McAfee v2.1.sh
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 |
View improved_reorder_wifi_alt.py
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
#!/usr/bin/python | |
# Modify the Mac's WiFi Preferred Networks list to put specified SSIDs at the top of the list | |
# As written, this requires the following: | |
# - OS X 10.6+ (has been reported working through 10.12.3) | |
# - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
# - pyObjC (as such, recommended to be used with native OS X python install) | |
# Run with root |
View DeleteADUsers.sh
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 | |
################################################################################ | |
# DeleteADUsers.sh | |
# | |
# Created by Steve Dagley 2017-03-01 | |
# | |
# Script to delete AD users accounts | |
# Requires Mac OS X 10.10 or newer and Casper/Jamf Pro enrolled machine for jamfHelper binary | |
# If run as root, deletes all AD accounts, so can be used via Policy to "clean" lab machines | |
# If user is logged in, asks to verify login ID and will not delete that account |