Link to home
Start Free TrialLog in
Avatar of koffea
koffea

asked on

Need Login Window to display computername

I have linux experience, but only have a couple months on the mac.  I need to have the macs in my mac labs (about 120 computers) display the name of the computer on the login window.  I also need to be able to do this via the command line.  

I tried:

hostn=`scutil --get HostName`
sudo defualts write /Library/Preferences/loginwindow.plist LoginwindowText $hostn

but this did not appear to have any effect at all.  what am i doin wrong.
Avatar of koffea
koffea

ASKER

also tried :
hostn=`scutil --get HostName`
sudo defualts write /Library/Preferences/loginwindow LoginwindowText $hostn

still no luck
ASKER CERTIFIED SOLUTION
Avatar of nxnw
nxnw
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of koffea

ASKER

ok i see this now.  I was hoping I would not have to alter the AD schema.  But it looks like i will have to now in order to make this work.

THank you.

Avatar of koffea

ASKER

answer was correct.  I also need to install mac update schema to AD
FYI, one would not assume that a mac lab is on AD (I assumed prefs were being managed by an OS X Server). Anyway, glad to help.