I have a policy that runs at Enrollment Complete for DEP enrolled machines. The policy contains a .pkg with a postinstall script that prompts the tech for a computer name and then names the machine using scutil --set ComputerName, HostName and LocalHostname. I've also tried adding jamf -setComputerName and networksetup -setcomputername to the script. After the script runs I check all of those locations via terminal and all return the new, correct name.
The policy also includes a JAMF Directory Binding for Active Directory. When this policy runs it binds the machine to AD using the previous computer name.
My question is: Where does the JAMF Directory Binding task pull the computerID info from for the bind?