I seem to have lost my trusty script that renames Macs and joins them to AD so I've had to re-make it. :(
Anyway, it's all nice and shiny now and it may come in handy for you since I've made it rather generic. You can check it out at http://www.edugeek.net/wiki/index.ph...tive_Directory
Feel free to post feedback and extend the script if needs be.