8.4.1 ProblemYou want to move a computer object to a different container or OU. 8.4.2 Solution8.4.2.1 Using a graphical user interface
8.4.2.2 Using a command-line interface> dsmove "<ComputerDN>" -newparent "<NewParentDN>" 8.4.2.3 Using VBScript' This code moves a computer to the specified container/OU. ' ------ SCRIPT CONFIGURATION ------ strCompDN = "<ComputerDN>" ' e.g. cn=joe-xp,cn=Users,dc=rallencorp,dc=com strOUDN = "<NewParentDN>" ' e.g. ou=workstations,dc=rallencorp,dc=com ' ------ END CONFIGURATION --------- set objComp = GetObject("LDAP://" & strCompDN) set objOU = GetObject("LDAP://" & strOUDN) objOU.MoveHere objComp.ADsPath, objComp.Name 8.4.3 DiscussionYou can move computer objects around a domain without much impact on the computer itself. You just need to be cautious of the security settings on the new parent OU, which may impact a user's ability to manage the computer object in Active Directory. Also, if GPOs are used differently on the new parent, it could impact booting and logon times. 8.4.4 See AlsoRecipe 4.17 for moving an object to a different OU, and Recipe 4.18 for moving an object to a different domain |