To move a computer from one OU to another I would recommend using dsmove

Do a dsmove computer /? To get the syntax etc. 

Generally it would look like:

Dsmove computer "CN=computerName,ou=oldou,dc=domain,dc=com" -newparent
ou=newou,dc=domain,dc=com

Phil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stuart, Cory G.
Sent: Friday, February 11, 2005 11:42 AM
To: [email protected]
Subject: [ActiveDir] Command Line AD Question

Hi Everyone,
        I'm going to be migrating a large number of machines from a
workgroup into a domain.  I'm probably going to have some people help me
and I want to make it as easy for them as I can.  I'm planning on giving
them a CD with batch files to do all of the work for them.  I'm familiar
with using netdom to join systems to the domain, but I'm looking for the
command line tool to move the system around within AD OUs.  For example,
before putting the machine into its "permanent" OU, I may want to put it
into a software OU so that certain packages will be installed first.  So
what command line tool(s) would you recommend for this.  I really
appreciate your help!!!

Thanks,

Cory
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/

Reply via email to