6.5.1 ProblemYou want to move a user object to a different container or OU. 6.5.2 Solution6.5.2.1 Using a graphical user interface
6.5.2.2 Using a command-line interface> dsmove "<UserDN>" -newparent "<NewParentDN>" 6.5.2.3 Using VBScript' This code moves a user from one container to another. ' ------ SCRIPT CONFIGURATION ------ strUserDN = "<UserDN>" ' e.g. cn=rallen,cn=users,dc=rallencorp,dc=com strOUDN = "<NewParentDN>" ' e.g. ou=Sales,dc=rallencorp,dc=com ' ------ END CONFIGURATION --------- Set objUser = GetObject("LDAP://" & strUserDN) Set objOU = GetObject("LDAP://" & strOUDN) objOU.MoveHere objUser.ADsPath, objUser.Name 6.5.3 DiscussionMoving a user object between OUs in the same domain has no direct impact to the actual user. The only thing to be cautious of is the impact of moving the user to a new OU that may have different security or GPOs applied to it. 6.5.4 See AlsoRecipe 4.17 for moving objects between OUs |