I don't know of any easy way to do this. As the IP address information is not stored in AD, I guess you would need to do this with a script (probably using WMI) to directly query each machine who's object is in the first OU and then perform the move using ADSI based on the retrieved IP address information. If the PCs get their IP allocated by DCHP then you'd have to derive the IP information from the DHCP server(s).
I can't think of a good reason why you would want to do this in the first place? Typically you create OUs for delegation of administration and/or Group Policy application. If you're doing this for GPO purposes you could consider defining separate sites based on the IP subnets and then applying Site GPOs. Tony ---------- Original Message ---------------------------------- Wrom: EGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIBGDADRZFSQHYUCD Reply-To: [EMAIL PROTECTED] Date: Mon, 21 Jun 2004 15:45:01 +0530 I want to move PC's from one OU to another OU based on IP Subnet. Details : I want to move all PC's whose IP is 10.238.10.* and 10.238.20.* from "Office" OU to "Home" OU. I want to do this in bulk command. Regards, Dinesh Tashildar ________________________________________________________________ Sent via the WebMail system at mail.activedir.org List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/