I'm running a bash script to update the computer name of our Macs dynamically based on a combination of the current user and our standard PC naming convention. This updates the computer name successfully, I can see this is reflected within systems preferences > sharing, but despite running a recon afterward, the new computer name isn't reflected in the JSS Computer inventory, it still says, for example, Pete's MacBook Pro.
Any ideas on how this field can be updated based on the new actual name of the device?