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
###Test Code### | |
### Intention is to figure out what JDK the user has installed. | |
### our current Ext atty reports the JRE, we need to know they have the JDK | |
## thanks to elliotjordon | |
## -00 is just a number to say that JDK is not installed. makes for better smartgroup searches | |
############### | |
if JDKver=$(ls "/Library/Java/JavaVirtualMachines" | awk -F "_|.jdk" '/.jdk/{print $2}' | tail -1) | |
then | |
echo "<result>$JDKver</result>" | |
else |
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 | |
## Demote admin users to standard | |
## | |
## author unknown | |
## Get list of users for demotion | |
## | |
#In the above, you need to replace the reverse grep (grep -ve) with your local admin #accounts between the quote marks. Place a pipe betwen each name if you have multiple #ones. if you only have one, no need for "-ve", just use grep -v "youradminname" | |
/bin/echo "Building list of local user accounts for demotion" |
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 | |
# | |
############################################################################ | |
# | |
# Extension Attribute checks to display Bluetooth 4.0 compatability | |
# 0x3 - too old | |
# 0x4 - too old | |
# 0x6 - compatible | |
# | |
############################################################################ |
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 | |
#Created By Dan De Rusha Damon O'Hare 4-22-15 | |
# | |
## we have cocoaD installed in our Utilities directory | |
# | |
CD="/Applications/Utilities/cocoaDialog.app/Contents/MacOS/cocoaDialog" | |
# | |
### Answer to install - Yes triggers the policy scoped with the custom trigger xeroxCorp5875 | |
rv=$($CD yesno-msgbox --no-cancel --text "Do you want to install Xerox Corp 5875?") | |
if [ "$rv" == "1" ]; 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/sh | |
set -euo pipefail # "e" and "o pipefail" let the script exit immediately on errors, "u" exits on undefined variables | |
###### Standard Variables ##### | |
### You should not normally need to edit these | |
### If you need to modify one for your own script, | |
### move the line to the script variable section and rename for consistancy | |
### This contains more variable than are used to serve better as a template | |
### Remove unused variables in this section before merging to remote module branch | |
startTime=$(date "+%Y-%m-%d_%H:%M:%S") | |
scriptName=$(basename -- "$0") # $0 is the full path to the script. basename removes the path. dirname would return only the path (see scriptDir below) |
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 | |
import plistlib, os.path, os | |
# Based off of https://forums.developer.apple.com/message/6741 | |
# and http://apple.stackexchange.com/a/136976 | |
def jdk_info_plists(): | |
# Find all the JDK Info.plist files | |
JDK_ROOT = "/Library/Java/JavaVirtualMachines" | |
if (os.path.exists(JDK_ROOT) and os.path.isdir(JDK_ROOT)): |
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 | |
#################################################################################################### | |
# | |
# written by Dan De Rusha, revised 2-11-15 for Creative Cloud Standard install from Self Service and imagaing | |
# | |
#################################################################################################### | |
# Variables used for logging | |
logFile="/private/var/log/Adobe_CC_STD_11_20_14_Install.log" |
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
Self Service downloading packages? | |
Are profiles being enforced? | |
Can you login with LDAP user/pass | |
Can you login with local user/pass | |
Create a test policy and deploy package from SMB, AFP, Cloud | |
Does the policy work on and off the network | |
Can you run a second policy over SMB without failure to mount server | |
Can I recon? | |
Can I enroll a new workstation? | |
Can I image? |
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 | |
# NAME | |
# setTimeZone.sh -- Set the time zone | |
# | |
# SYNOPSIS | |
# sudo setTimeZone.sh | |
# sudo setTimeZone.sh <mountPoint> <computerName> <currentUsername> <timeZone> | |
# | |
# If the $timeZone parameter is specified (parameter 4), this is the time zone that will be set. | |
# |
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 | |
#created By Dan De Rusha modified 10-8-14 | |
### DELETE UTC CACHES | |
rm -r /Library/Extensis | |
mkdir /Library/Extensis | |
chmod 777 /Library/Extensis | |
### DELETE MICROSOFT CACHES | |
rm /Users/*/Library/Preferences/Microsoft/Office\ Font\ Cache* | |
rm /Users/*/Library/Preferences/Microsoft/Office\ 2008/Office\ Font\ Cache* |
OlderNewer