2 shell scripts to maintain standard naming conventions

So, you have some Macintosh computers at your work and you have a standard naming convention.  Something that needs to be in place because of how policies are ran, say by a computer name list or a group of computer names.   If a user changes it, it could break something you have in place.

So, I came up with a sort of clever way of maintaining the computer name at all times.  My method does have a few requirements though.  Here is a list of what you must do and have in place for this to really work:

Search and Destroy

Im a street walking cheetah with a heart full of napalm...Im a runaway son of the nuclear a-bomb...I am a worlds forgotten boy...The one who searches and destroys..

 

Create local user accounts

Here is a simple script to create a local user account, this script is designed with the idea of it being in an educational environment, so if you decide to use make sure to tweak it to your needs.  I have tested it in mass in OS X 10.5.3 and 10.5.5 (several thousand clients) and it works great.

Here it is!

 

Kick start ARD remote management

If for some reason you actually forget to enable ARD client to remotely access and manage your clients I have a script here that will enable it again. This script was used and tested in OS X 10.5.4 and worked. It also assumes you want to give access to a local admin account, which is what this script is designed to do. If you need to enable directory or LDAP users you will need to tweak the script.