Can't change computer name at JAMF

AGE1NTS
New Contributor

Ever since I updated our organization's JAMF cloud server to ver. 11.3 last week, our team can't change the hostname of our client Mac devices. Though I still can type within the textbox to attempt the changes. However, the save button does nothing other than redirecting me back to the General Tab

 

Prior to the update (i.e. on  ver. 11.2), we have no problems changing the hostnames of our client Mac devices and the changes takes effect in an instant. 

Hostname change 1.gifHostname change 2.gif

I've also confirmed that our Policy for Computer Names is enabled at Maintenance > Reset Computer Names

 

At this point I'm not sure whether the issue is on our JAMF cloud server, or whether there is a bug on the latest version that I'm not aware of. Appreciated for any inputs.

22 REPLIES 22

Nicholas185
New Contributor

@AGE1NTSQuality ball sports gear wrote:

Ever since I updated our organization's JAMF cloud server to ver. 11.3 last week, our team can't change the hostname of our client Mac devices. Though I still can type within the textbox to attempt the changes. However, the save button does nothing other than redirecting me back to the General Tab

 

Prior to the update (i.e. on  ver. 11.2), we have no problems changing the hostnames of our client Mac devices and the changes takes effect in an instant. 

Hostname change 1.gifHostname change 2.gif

I've also confirmed that our Policy for Computer Names is enabled at Maintenance > Reset Computer Names

 

At this point I'm not sure whether the issue is on our JAMF cloud server, or whether there is a bug on the latest version that I'm not aware of. Appreciated for any inputs.



Since updating our organization's JAMF cloud server to version 11.3 last week, our team has encountered an issue with changing the hostname of client Mac devices. Although I can still enter text in the hostname textbox, clicking the save button has become ineffective, only redirecting me back to the General Tab. Before the update (version 11.2), we experienced no difficulties changing hostnames, and the changes were immediately effective.

We got the same issue here.

Duke78
New Contributor III

Having the same issue. 

AJPinto
Honored Contributor II

Generally, you want to change the name of the device with a policy that contains a script payload. For your issue with the Jamf Console, I recommend checking permissions. If permissions are fine, make sure the issue is not isolated to this single inventory record, if it's not reach out to Jamf as something could be wrong with your database.

 

This is what I use.

#!/usr/bin/env bash
#*=============================================================================
#* Script Name: 
#* Created: 
#* Author: 
#*=============================================================================
#* Purpose: Requests input and renames computer based on Naming Convention 2301
#*=============================================================================




#*=============================================================================
#* GLOBAL VARIABLES
#*=============================================================================
DIV1='echo ####################################################################'
DIV2='echo --------------------------------------------------------------------'
DIV3='echo ....................................................................'
ActiveUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }' | tr "[a-z]" "[A-Z]"`
ActiveUserRealName=`dscl . -read /Users/$ActiveUser | grep RealName: | cut -c11-`
    if [[ -z $ActiveUserRealName ]]; then
        ActiveUserRealName=`dscl . -read /Users/$ActiveUser | awk '/^RealName:/,/^RecordName:/' | sed -n 2p | cut -c 2-`
    fi
computerName=$(scutil --get ComputerName)
hostName=$(scutil --get HostName)
localHost=$(scutil --get LocalHostName)
serialNumber=$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}')
serialNumberII=$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}' | tr -d '"')
#*=============================================================================
#* FUNCTIONS
#*=============================================================================
userInfo () {
    echo; $DIV1
    echo "User Information:"
    if [[ "$ActiveUserRealName" == "$ActiveUser" ]]; then
        echo  "$ActiveUserRealName (Local Admin)"
    else 
        echo "$ActiveUserRealName ($ActiveUser)"
    fi
    $DIV1
}
#*=============================================================================
#* SCRIPT BODY
#*=============================================================================
userInfo

## Check & Update Computer Name
if [ "$computerName" == "$serialNumber" ]
then
	echo "Computer name matches serial number, $serialNumber"
else
	echo "Current Computer Name: $computerName"
	echo "Computer Name does not meet standards"
	echo "Changing Computer Name to match Serial Number"
	scutil --set ComputerName "$serialNumber"	
fi; $DIV2

## Check & Update Host Name
if [ "$hostName" == "$serialNumber" ]
then
	echo "Host Name matches serial number, $serialNumber"
else
	echo "Current Host Name: $hostName"
	echo "Host Name does not meet standards"
	echo "Changing Host Name to match Serial Number"
	scutil --set HostName "$serialNumber"
	
fi; $DIV2


## Check & Update Local Host
if [ "$localHost" == "$serialNumber" ]
then
	echo "Local Host matches serial number, $serialNumber"
else
	echo "Current Local Host: $localHost"
	echo "Local Host does not meet standards"
	echo "Changing Local Host to match Serial Number"
	scutil --set LocalHostName "$serialNumber"
	
fi; $DIV2


## Final Check
computerNameII=$(scutil --get ComputerName)
hostNameII=$(scutil --get HostName)
localHostII=$(scutil --get LocalHostName)

echo ""
echo "Serial number: $serialNumber"
echo "Computer Name: $computerNameII"
echo "Host Name: $hostNameII"
echo "Local Host: $localHostII"
if [[ "$computerNameII" == "$serialNumber" ]] && [[ "$hostNameII" == "$serialNumber" ]] && [[ "$localHostII" == "$serialNumber" ]] 
then 
	echo "Computer Name satisfies naming standards"
	$DIV1; exit 0
else
	echo "Computer does not meet naming standards"
	echo "More troubleshooting will be necessary."
    $DIV1; exit 1
fi 

## Perform final Recon to update computer name on Jamf
sudo jamf recon
#*=============================================================================
#* END OF SCRIPT
#*=============================================================================

 

diego_boff
New Contributor

Confirming we also got this issue :(

DavidSpribe
New Contributor III

We have the same issue since 11.3 update. The tricky thing is that one of the admins is able to edit and save the new names, but another admin can't do the same.

Stephanerocher
New Contributor

Same problem here ! 

DavidSpribe
New Contributor III

This problem comes from Jamf Pro 11.3 update and I hope, it will be fixed in 11.4 update

chrisB
Contributor II

I filed a support ticket for that; after sending log files and screenshots I received the following reply:

 

Overall, It looks like we are having  issues with Jamf Pro users with Group Access inside User Group with Administrator privileges cannot change 'Computer Name' for Computer 

Issues mentioned above have been highlighted in the  Product Issue submitted - If you would like to reference it in the future, please reference PI117013

I’ve gone ahead and attached this case to the Product Issue in order to help increase the issue’s status and priority. We do apologize for the inconvenience this may be causing both you and your end-users. That being said, rest assured our developers are doing their best to help fix these items. Please keep an eye on new releases of Jamf Pro and the release notes which provide insight to the Product Issues the updated versions have addressed and fixed.

DavidSpribe
New Contributor III

I confirm - I have a Group Access with Administrator privileges. My colleague, who has Full Access, does not have a problem with renaming of our computers.

DavidSpribe
New Contributor III

Any news about this issue? Jamf Pro 11.4 will be deployed in about 10 days or so... I could not find any kind of mentioning of this problem in the Release Notes

The best would be if you all file a support ticket and mention issue PI117013 to ensure that this problem is prioritised.

DavidSpribe
New Contributor III

How to find out if the issue PI117013 is going to be fixed in v11.5?

I think this may have been recently fixed. I was on version 11.4.1 last week when I opened a support ticket (and Jamf Support indicated my issue was related to PI117013). I am still on 11.4.1, and as of yesterday, we are no longer seeing the issue.

DavidSpribe
New Contributor III

Just checked and we still have this problem. We are also on version 11.4.1

DavidSpribe
New Contributor III

I found that the server was updated to version 11.4.2 yesterday, but the problem still persists.

DavidSpribe
New Contributor III

Wel... Jamf Pro 11.5.1 is out, but our issue is still not resolved. It's a big shame guys :( To say that we are disappointed - not to say anything at all :( I don't think that this issue is non-repairable... It's almost three months, that we are struggling it. I have to disturb out IT operations manager (who has Full Admin access) to rename newly added MacBooks. Please, do something to fix it... I have filed a ticket, but after couple emails the communication has stopped. I have some doubts that using Jamf either won't do anything with it. I repeat - the problem appears only if people with Group Admin access privileges are trying to rename computers in the inventory list. People with Full Admin access privileges, do not have this problem. The thing is that it's my job to keep the inventory list, enroll new computers, etc... I can't ask other admins (with full access) to do the job for me.

Duke78
New Contributor III

This is true for us as well.

Hi @DavidSpribe May I know your enrolment flow is it via ABM? and what is the prerequisite for changing the hostname? Did you try changing the hostname via a script and giving the user option to update accordingly.

Let me know if I can be any help to resolve your issue manually.

DavidSpribe
New Contributor III

Hi @kishoth_p ,

thanks for replying... Our MacBooks are tied to MDM through ABM. First, all laptops are going to PreStage Enrollment database. Then, during Enrollment process, they go to the main inventory list, with the default names 'MacBook Pro' and 'MacBook Air' (depending on the model). I was renaming them from the web interface (via Edit and Save buttons). Using scripts is not acceptable in our case. We just wonder, why is this issue so difficult for Jamf people to solve... Waiting for it since the beginning of March - three months and two weeks already.

What do you mean by saying 'resolve your issue manually'? I don't think that this issue can be solved manually, because I'm not the only one who's got this problem. Once again - only Admins with Group Access have this problem. Admins with the Full Access are still able to rename computers in the inventory list. My top management is not going to give me Full Access rights and the only solution is to fix this problem in one of the future updates.

DavidSpribe
New Contributor III

Sorry, forgot to mention prerequisites for changing the hostname. There are no prerequisites. We just want all our computers to have unique hostname. It's much easier to identify them during working process (when a certain employee has some issues with his/her MacBook).

DavidSpribe
New Contributor III

Surprise - just checked and found that Jamf Pro was updated to 11.6.1 version. Tried to rename one of 'MacBooks' and it was renamed! I will wait a while and see if the fix is persistent. Thanks again for your attention.