Posted on 04-06-2009 11:33 AM
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.
Posted on 04-06-2009 12:15 AM
This worked.. I found the solution right after I emailed the list.
Loving Casper right now!
Posted on 04-06-2009 11:43 AM
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
Posted on 04-06-2009 11:48 AM
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
Posted on 04-06-2009 11:59 AM
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
Posted on 04-06-2009 01:37 PM
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
Posted on 04-07-2009 07:41 AM
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
Posted on 04-07-2009 07:47 AM
Show off! =)
Posted on 08-21-2012 08:16 AM
New thread started