Author: NetworkAdminKB.com
Created: 2010-02-21
Modified: 2011-01-16
Version: 1.3.14
The ADSMoveObjects utility can be used to move one or more AD objects from one OU to another within the same Domain.
1) The object(s) being moved can be located anywhere with the domain.
2) The location of the object(s) being moved is not needed, instead AD will be searched.
a. Object(s) are search for on both samAccountName and Common Name (CN).
3) Objects(s) can be moved / specified in the following ways
a. Single object and target OU via the command line options /o /t
b. Multiple objects, single target OU, via the command line options /i /t
i. Provide a text file of object names, one per line.
c. Multiple objects, multiple target OUs, via the command line option /i
i. On each line of the text file provide a target OU and objects on a single line.
4) Very useful for moving a lot of objects or in batch or automating/scripting moves etc.
Requirements and Limitations
1) Permissions required
a. To run ADSMoveObjects the user account must be have the appropriate permissions in the target domain.
i. Specifically, moving accounts requires the appropriate permissions on the object, and source/destination OUs.
b. Account Operator or Domain Admin permissions are generally recommended.
2) All objects types should work with this utility. However, only the following objects were tested during development.
a. Users
b. Computers
c. InterOrg Person
d. Contacts
e. Groups
3) Moving of Organizational Units (OUs) is not supported.
a. An OU is not an object, but rather a container.
4) Built-in container objects (CN=Built-in, CN=Domain Controllers, etc) have restrictions on which objects may be moved into them.
a. If you encounter issues with the built-in containers verify the move is possible using Active Directory Users and Computers.
5) Tested and developed against Windows 2003 domain controllers.
6) VB6 Runtime may be required on Windows 2000 or earlier OS.
Syntax:
Author: NetworkAdminKB.com
Version: 1.3.14
Copyright (c) 2008-2011 NetworkAdminKB.com, All rights reserved.
Bug Report: bugs@networkadminkb.com
Purpose: Move Active Directory Objects to any OU within the same domain.
Syntax:
ADSMoveObjects {/o=objectname /t=targetOU | /i=inputfile [/t=targetOU]}
[/d=domain]
Purpose: Move Active Directory objects (users, computers, groups, etc)
to any OU within the same domain.
/o=objectname The object (user, computer, group) to move.
Objects are searched for by samAccountName and CN.
/t=targetOU The target AD OU in simple RDN format (drop DC= portion).
OU=Target,OU=SubOU
/i=inputfile An input file of objects or targetOU and objects.
TargetOU and Object format
OU=RDN|object1,object2,...
OU=RDN|object1,object2,...
Object format, /t specified on the command line.
object1
object2
...
Optional Parameters
/d=domain The domain all objects are found in.
If not specified rootDSE is used to determine the domain.
Examples:
ADSMoveObjects /o=user1 /t=OU=MYOU
ADSMoveObjects /i=moves1.txt /d=my.domain.com
ADSMoveObjects /i=moves2.txt /t=OU=MYOU
moves1.txt
OU=Admins,OU=MYOU|Domain Admins,Enterprise Admins
OU=WKS,OU=MYOU|WKS1000,WKS1001
moves2.txt
User1
User2
Download ADSMoveObjects
Article ID: 271, Created On: 9/18/2011, Modified: 9/18/2011