DS Commands – DSMOVE

You can move accounts to different OUs or containers with the dsmove command. The difficult part about this task is building the DN, but if you’ve mastered the DN, the command is simple.

Note: You can also move objects with the Active Directory Migration Tool (ADMT) and with the LDIFDE command.

dsmove Command


Move an object from one OU to another OU.

Dsmove dn -newparent parentdn

C:\>dsmove “cn=joe,ou=east,ou=sales,dc=habib,dc=local” -newparent “ou=west,ou=sales,dc=habib,dc=local” C:\>dsmove “cn=joe,ou=west,ou=sales,dc=habib,dc= local” -newparent “ou=east,ou=sales,dc=habib,dc=local”

This example moves a user account from the sales\east OU to the sales\west OU and then back.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s