4.17.3 Discussion

4.17.3.1 Using a graphical user interface

If the parent container of the object you want to move has a lot of
objects in it, you may want to add a new connection entry for the DN
of the object you want to move. This may save you time searching
through the list of objects in the container. You can do this by
right clicking ADSI Edit and selecting Connect to. Under Connection
Point, select Distinguished Name and enter the DN of the object you
want to move.

4.17.3.2 Using a command-line interface

The dsmove utility can work against any type of
object (no limitations as with dsadd and
dsmod). The first parameter is the DN of the
object to be moved. The second parameter is the new parent container
of the object. The -s parameter can additionally
be used to specify a specific server to work against.

4.17.3.3 Using VBScript

The MoveHere method can be tricky, so an
explanation of how to use it to move objects is in order. First, you
need to call GetObject on the new parent
container. Then call MoveHere on the parent
container object with the ADsPath of the object to move as the first
parameter and the RDN of the object to move as the second.

The reason for the apparent duplication of
cn=jsmith in the MoveHere
method is that the same method can also be used for renaming objects
within the same container (see Recipe 4.19).