This changes your macOS hostname based on machine year, and last user
- basically download and run, depending on how you run you may need
sudo
- script will ask you promt for LOCATION
- when script completes it asks you if you want to erase the proggie off of the disk, that's up to you
- shortcut to downloading and running in case you are lazy:
curl https://raw.githubusercontent.com/zackn9ne/host_name_changer/master/host_name_changer2.5.1j.sh > host-name-changer.sh && sh host-name-changer.sh
- put this in your scripts
- make a policy and call this script
- hash your JamfPro username:password with base64 and put it in $4 of the policy (https://www.base64encode.org/) is a good site
- put JSSURL in $5 of the policy, include the https:// or else
- no need to recon after, script recons after all changes made, it is an inventory script after all