Posted on 01-25-2017 06:39 AM
I have a workflow question.
Basically what we are doing is building manually, then using a quickadd package to enroll the device. Right now I have the techs set the HostName through Sharing, and then running the quickadd package.
What I would like to do is this.
My question is...how do I get the name to update in the JSS to the then renamed computer? Or will it update automatically?
Posted on 01-25-2017 06:43 AM
@Pacers31Colts18 simply doing jamf recon
after changing the name will update the JSS. So something like this:
scutil --set ComputerName $newCompName
scutil --set HostName $newCompName
scutil --set LocalHostName $newCompName
jamf recon
Of course you'll need the rest of the logic to ask for the computer name, etc.
Posted on 01-25-2017 07:48 AM
scutil --set ComputerName $newCompName scutil --set HostName $newCompName scutil --set LocalHostName $newCompName jamf recon
@stevewood would this do the same thing?
jamf setcomputername -name $newCompName
jamf recon
Posted on 01-25-2017 08:08 AM
@Volker Yes, that would. I'm just old school and use scutil
for whatever reason. And the fact that he mentioned it in his post was why I did it that way.
Posted on 01-25-2017 11:00 AM
What I did in the past was add a preflight script inside the QuickAdd package that will name the computer. That way the techs only had one package to install. Of course, we had to create a package for all the various computer names.
Posted on 01-26-2017 07:21 PM
Thanks guys.
What I have it doing is this now: