Kyder - Just to let you know I decided to run the script with a couple more test servers in our organization. It worked on both of them with no problems at all. So ive decided to run it on all of them and it seems to have been 90% succesful. Still not sure why it didnt work on the others. If i find out i'l let you know.

Thanks for your help anyway.

Julian