So I'm trying to bind to AD using a policy. It's actually binding just fine, but it uses the computer's current name of "Admin's Mac Mini" to bind. I made a little shell script to use scutil and set the three names (Hostname, LocalHostName and ComputerName) to the serial number, then run the policy. However, it's still binding using the computer's previous name.
Is there a way to specify a computer name in the bind policy? Or a way to refresh the system so that it actually binds using the recently set (and currently ignored) computer name? FYI, I'm trying to use the serial number as the computerID when binding.
I know it can be done via command line using the jamf binary using the computerID parameter, but to do that, I need to specify my credentials on the command line which I can't do for security reasons.
The next step for me is going to be to set the computer name, force a reboot, then do the bind, but that seems like a big mess and I'm hoping it isn't necessary.