Don't know the size of your environment, but in mine we have 60+ machines join daily. I tell the admins which OU to join them to, and then "sweep up" behind them in the Computers container with a script like Alain's with dsquery and dsmove: we query for operating system then place accordingly.
Al Maurer Service Manager, Naming and Authentication Services IT | Information Technology Agilent Technologies (719) 590-2639; Telnet 590-2639 http://activedirectory.it.agilent.com ---------------------------------------------- "Cry 'Havoc!' and let slip the dogs of war" - Anthony, in Julius Caesar III i. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Sent: Tuesday, January 10, 2006 7:55 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Automagically move AD computers into new/appropriate OU On 1/10/06, Kamlesh Parmar <[EMAIL PROTECTED]> wrote: > If you know the admin password of all new computers, you can use netdom.exe > to join machine > remotely, and at the same time put it in exact ou where you want to put it. > > NETDOM JOIN comp1 /DOMAIN:WINDOM /UO:LocalAdmin /PO:LocalAdminPassword > /UD:WinDom\DomAdmin /PD:DomAdminPassword /OU:"OU=MyComps,dc=dom,dc=com" > > Where > comp1 = remote computer to join the domain > windom = domain to join > localadmin = local administrator of comp1 computer > localadminpassword = localadmin 's password > windom\domadmin = domain account with rights to join machine to domain > DomAdminPassword = windom\domadmin's password Excellent, I will try this! Thanks! ...D -- CPDE - Certified Petroleum Distribution Engineer CCBC - Certified Canadian Beer Consumer List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/