Posted on 08-07-2013 11:15 AM
Hey everyone here are some cool EA's. I haven't found how to upload EA's since the website has been change a little.
ARD Enabled
#!/bin/sh
echo "<result>`cat /private/etc/RemoteManagement.launchd`</result>"
This script will report a simple "enabled" or nothing. Great way to find out who's trying to hide!
Bound AD Object
#!/bin/sh
adObject=`dsconfigad -show | awk '/Computer Account/{print $NF}' | tr '[a-z]' '[A-Z]' | sed s/.$//`
echo "<result>$adObject</result>"
This little script will report the "Computer Account" field from dsconfigad -show and make the data a little cleaner.
Local Time
#!/bin/sh
echo "<result>`systemsetup -gettime | cut -c 7-`</result>"
This script reports the local time on the machine. Great for troubleshooting Directory Services issues. If you match the Last Report Date with this EA you will get a good idea of who's clock is messing things up.
Quicktime Pro License
#!/bin/sh
if [ -f "/Library/Preferences/com.apple.QuickTime.plist" ]; then
result=`/usr/bin/defaults read /Library/Preferences/com.apple.QuickTime "Pro Key" | grep Registration | awk '{print $4}' | sed 's/"//g' | sed 's/;//g'`
fi
echo "<result>$result</result>"
This reports the QT Pro License Key being used, if one is being used.
Posted on 08-07-2013 02:27 PM
Cool, thanks for sharing, Matt!