community-scripts
community-scripts copied to clipboard
[ADD] macos rename computer script
Added script to rename macos computer. Already tested in a MacBook Pro m1 running macOS Monterey.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
João Paulo Ros seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
Why wasn't scutil --set HostName included?
@bbrendon, I used the "set HostName". After further research, the LocalHostName works fine for ".local" hostnames, so I removed the "set HostName".
The "set HostName" option is only useful when you have an FQDN associated with the machine, and in my POV, that's not a common use case for Macs.
We could create another script for those who want to have an FQDN associated, but in the scenario of my company, we wouldn't use that.
Why not one script, with a switch to choose which method?