Quantcast
Channel: Server Geeks » Active Directory
Viewing all articles
Browse latest Browse all 13

DS Commands – DSMOVE

$
0
0

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

Comments

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.


Filed under: Active Directory, Windows Server 2003, Windows Server 2008 Tagged: Active Directory commands, ADMT, DS Commands, DSMOVE, LDIFDE

Viewing all articles
Browse latest Browse all 13

Trending Articles