Quote:

Maybe you missed what I said. If you create the computer account in the right OU BEFORE you join it to the domain, it will not end up in the DEFAULT container. We have dozens of techs doing it that way ever day.



Sorry Les, did not catch that first time around.
I am trying to build a script that will look at our SQL database and check if the computername has been used in the past. If not, have it look at AD to double check and then add the new name. Will add the account to the new OU and then have the tech add it to the domain. I am curious though how I can do this if the computer is not yet part of the domain, or if it is possible to run from that machine. I am thinking I need a seperate script that is already on the domain. Any ideas or suggestions?
_________________________
John
LM Contractor
One of the 2 dads