Need to move selected user with a specific attribute to an OU from their existing OU
Posted on 2016-11-08
My requirement is to move few users from an OU to a different OU. All users are currently under "SAMPLE" OU and all of them have an attribute "xyz" set with a value '3'.
ex: user "Test" is located in OU=Sample,DC=Contoso,DC=com. He's got an attribute named "xyz" set with value '3'. I would like to move this user to OU=Sample1,DC=Contoso,DC=com
My requirement is to move user accounts with attribute name "xyz" of value 3 from an OU for ex: OU=Sample,DC=COntoso,DC=com to OU=Sapmple1,DC=Contoso,DC=com
Additionally, all those accounts which are supposed to be moved are disabled and i need to enable them as well.
Let me know if any other information is required
Thanks in advance