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 | |
# | |
############################################################################ | |
# | |
# 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/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
###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 |
NewerOlder