Scripts

Shell Script to remove a client's bindings to an old server and then bind them to a new Directory server.

This is a script that will remove the current binding of the client machine and then rebind it to whatever Directory Server you specify.  It works in 10.4.11 and 10.5.

Shell Script to set Proxy server settings in 10.4

This is a shell script I have used to change out proxy settings in the OS X client. You can send it via ARD admin, Casper client, ssh, or whatever other means you wish.

Create Hidden User in 10.5

Here is a script that creates a hidden user account in 10.5 for local administration of a client machine.

Shell Script to create an image file for your boot camp installation.

This script assumes that you have partitioned your Mac into two partitions.  One for OS X and one for Windows.  You must also have the NTFS3G tools to be able to read/write to NTFS.  By default OS X can only read NTFS local partitions.  You also need a binary called gtprefresh, which allows your Mac to refresh the MBR since Windows boxes use legacy BIOS instead of EFI.  Those files can be found here from Mike Bombich's site:

http://www.bombich.com/software/files/

Shell script to post image a machine with a boot camp partition

This script I have tested and used in the Casper Suite in my actual enterprise work environment.  Over this last summer we imaged 6,000 Macbooks with a dual boot image.  I created the Image by building it manually from scratch with boot camp and a Windows XP SP2 CD.  I then used this shell script to create my image.  So, in the JSS, which is a server that holds policies and auto run data (amognst other things) I set a configuration for every client machine that is tied to the student smart group t

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.

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!

 

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..

 

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: