I have an OU with around 2500 computers. I need to move 580 of them to another OU. Is there a way to do this with a batch file? I have a text file with the computernames (not the FQDN).
That should take care of it for you. edit: It's been a while since I've had to use dsmove :) It needs the DN of the object that you're moving, so I added the dsquery in front of a pipe to get the DN from the list and then pipe it to dsmove. This should work fine now for a list of just NetBIOS names. | ||||
|
feedback
|
|
Assuming that you have the names of your comptuers in a text file and 1 on each line youc an run the following command to export the fqdn of them
Then run the following command to move them. Please use the echo command in lue of dsmove to test this first
Test it out. Let me know if it doesn't work. | |||||||||||||||||
feedback
|