Changing Shared Name

rsnediker
New Contributor

Hi All,

I'm having issues changing a computer's shared name through all Terminal commands I can find online, as well as through Casper. When I change the computer name in the JSS, the change is reverted after an inventory update is given. Does anyone have a solution to this?

Thanks,

Russ

1 REPLY 1

rlandgraf
Contributor

jamf setComputerName -name $NewComputerName

scutil --set HostName $NewComputerName

one of these two will change the name in file sharing. I believe it is the first one. One changes the file sharing name and the other the hostname that you will see in the terminal (Which I'm 90% sure is the second one).