Computer Name

Not applicable

I can't recall this, but isn't there a way to change a computer name remotely? I looked in the documentation and I can't seem to locate this information. Any help is appreciated.



Kathie Iorizzo
Lower School Technician
The Latin School of Chicago
kiorizzo at latinschool.org
312.582.6136

8 REPLIES 8

Not applicable

This worked.. I found the solution right after I emailed the list. Loving Casper right now!



Kathie Iorizzo
Lower School Technician
The Latin School of Chicago
kiorizzo at latinschool.org
312.582.6136

ernstcs
Contributor III

You can do it one of two ways, this is using 6.01...

There is a check-box in Casper Remote on the advanced tab, Reset Computer Names, that will allow you to change the machine of the remote system back to what the JSS currently has in it's inventory. However, this does you no good if your system has recently inventoried and the wrong name is stored in your JSS.

You can get around this by first manually editing your computer inventory for that unit in the JSS, then running that option with Casper Remote.

There are other ways to remotely change the machine name using some command line options if you want that info. But what's mentioned above is a totally JSS way of doing it.

You can also have a policy set to perform this task the next time the system checks in for policies, if the unit is sometimes not on the network. This again has the same issue that the machine in the JSS needs to be correct first in order for it to be correct when it attempts to rename the machine.

Craig E

dustydorey
Contributor III
Contributor III

If you still use Apple Remote Desktop at all you could rename it with
that Manage>Rename Computers And then send a unix command via ARD
jamf recon

-Dusty-

Dustin Dorey

Technology Support Cluster Specialist

Independant School District 196

Rosemount-Apple Valley-Eagan Public Schools

dustin.dorey at district196.org

651|423|7971

ernstcs
Contributor III

I won't be lazy I guess. The command line method is using the scutil command.

Sudo scutil -set LocalHostName <name>
Sudo scutil -set HostName <name>

Should update them both.

You could perform these on the Run Command line option on the advanced tab of a Casper Remote or Policy. I forget the character to place in between multiple commands there don't do that normally.

Looks like Chad beat me to it...

Craig E

Not applicable

What would these equivalent commands for a 10.3.9 system to change host name
& local host name? I've been trying to find those.

Thanks,
Hillary
Capistrano USD

tlarkin
Honored Contributor

There are three ways from the command line to change the computer name:

scutil which has already been mentioned

in 10.5 you can use the networksetup command

and of course if you are running Casper

jamf setComputerName



Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351

ernstcs
Contributor III

Show off! =)

Sean_M_Harper
Contributor

New thread started