DSMOVE combined with DSQUERY (Win2003)

C:\>For /F "delims=*" %i in ('dsquery * "ou=MyOU,DC=LissWare,dc=Net" 
           -filter "(&(objectClass=computer)(name=J*))"') do 
           dsmove -newparent "ou=MyComputers,dc=LissWare,dc=net" %i 

/Alain

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Sent: Monday, January 09, 2006 7:09 AM
To: [email protected]
Subject: [ActiveDir] Automagically move AD computers into new/appropriate OU

Is there a way to automagically place new AD computers into the correct OU,
as opposed to the built-in Computer container?

Thanks,

...D
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