Skip to content

Instantly share code, notes, and snippets.

View cshepp1211's full-sized avatar

Chris S. cshepp1211

  • Fermi National Accelerator Laboratory
  • Batavia, Il
View GitHub Profile
/Library/Application\ Support/JAMF/bin/Management\ Action.app/Contents/MacOS/Management\ Action -title
"Update MS Office 2016 O365" -subtitle "MS Office 2016 64-bit v15.25.0" -message "is available for update
in Self Service."
@cshepp1211
cshepp1211 / office2016_SS_script.sh
Created February 24, 2016 22:53
Office 2016 Installation script for use with Self Service
#!/bin/bash
# Set up log file, folder and function
LOGFOLDER="/private/var/log/gov.fnal"
LOG=$LOGFOLDER"/Office-2016-Install.log"
error=0
if [ ! -d "$LOGFOLDER" ];
@cshepp1211
cshepp1211 / OneDrive2016.sh
Created February 23, 2016 15:51
OneDrive through Self Service
#!/bin/bash
# Author : Chris Sheppard
# Set up log file, folder and function
LOGFOLDER="/private/var/log/gov.fnal"
LOG=$LOGFOLDER"/OneDrive-2016-Install.log"
error=0
@cshepp1211
cshepp1211 / _verify-repair-permissions-disk.md
Created October 23, 2015 15:55 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@cshepp1211
cshepp1211 / identify_local_admins.sh
Created July 29, 2015 20:53
identify_local_admins
#!/bin/bash
# Script to detect if a computer has a local admin account on it with an UID of above 500
# Initialize array
list=()
# generate user list of users with UID greater than 500
@cshepp1211
cshepp1211 / is-root-enabled.sh
Created July 29, 2015 20:40
is-root-enabled
#!/bin/bash
rootCheck=`dscl . read /Users/root | grep AuthenticationAuthority 2>&1 > /dev/null ; echo $?`
if [ "${rootCheck}" == 1 ]; then
echo "<result>Disabled</result>"
else
rm -rf /Volumes/Macintosh\ HD/private/var/db/BootCache*
rm -rf /Volumes/Macintosh\ HD/Library/Caches/com.apple*
defaults write /Volumes/Macintosh\ HD/Library/Preferences/com.apple.loginwindow.plist DSBindTimeout -int 10
shutdown -r now
-N Do not ask for a password. At run time, mount_smbfs reads the ~/Library/Preferences/nsmb.conf
file for additional configuration parameters and a password. If no password is found,
mount_smbfs prompts for it.
@cshepp1211
cshepp1211 / mcxDeletev1.1
Last active February 23, 2016 16:48
DeleteMCX
#!/bin/bash
# written by Kirk Skaar
#
# v1.1
#
# 19 September 2014
# Script to remove MCX managed preferences
#
# Removes the Managed Preferences directory