Hello all,
I created the script below to update the username in the Inventory fields, however I need another line to update the Full Name section. Is there a way I can do it?
!/bin/bash
loggedInUser=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + " ");')
Set in JAMF Binary
/usr/local/bin/jamf recon -endUsername $loggedInUser
Thank you.