Created
November 28, 2021 21:07
-
-
Save macmule/472066b9347d08b396ef088754e0b951 to your computer and use it in GitHub Desktop.
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 | |
#################################################################################################### | |
# | |
# License: https://macmule.com/license/ | |
# | |
#################################################################################################### | |
# Get the logged in users username | |
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'` | |
echo "Running recon for $loggedInUser `date`..." | |
# Run recon, submitting the users username which as of 8.61+ can then perform an LDAP lookup | |
jamf recon -endUsername $loggedInUser | |
echo "Finished running recon for $loggedInUser `date`..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment