Skip to main content
Question

Casper Remote/JSS User the same

  • June 6, 2017
  • 1 reply
  • 13 views

Forum|alt.badge.img+6

I'm noticing in Casper Remote the User Name is the same on multiple devices I'm working with. When I'm in the JSS and I search for this user, they've got almost 70 devices linked to their name. Another user name has got about 80 devices linked to theirs. They were old student workers who graduated a while back, I'm assuming the previous IT Director had them enroll the devices such that their name occupied the field. Is there a way to update that field automatically to whichever user has logged in?

1 reply

easyedc
Forum|alt.badge.img+16
  • Esteemed Contributor
  • June 6, 2017

I run this as an ongoing, daily policy:

#!/bin/sh
lastUser=$(defaults read /Library/Preferences/com.apple.loginwindow lastUserName)
jamf recon -endUsername "$lastUser"

which seems to do the trick for me.