Skip to main content
Question

Changing Shared Name

  • November 29, 2012
  • 1 reply
  • 2 views

Forum|alt.badge.img+3

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

Forum|alt.badge.img+14
  • Contributor
  • November 29, 2012

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).