Hi All,
Our District is aiming to use Macbook Air for our next laptop refresh. We have Jamf Pro and on our way to get a subscription on Jamf Connect. Anyhow, when I created a script under Policies, the name is not changing. The naming convention that I wanted to use for all the M1's should be M1-"Serial Number". The script that I've created is below;
#!/bin/bash
$ sudo jamf setComputerName -name $M1-$serialNumber
scutil --set ComputerName $M1-$serialNumber
scutil --set LocalHostName $M1-$serialNumber
scutil --set HostName $M1-$serialNumber
exit
Please help?
Thank you and have a great one!
Sincerely,
Cesar