You want to move a computer object to a different container or OU.
Open the Active Directory Users and Computers snap-in.
If you need to change domains, right click on Active Directory Users and Computers in the left pane, select Connect to Domain, enter the domain name, and click OK.
In the left pane, right-click on the domain and select Find.
Beside Find, select Computers.
Type the name of the computer and click Find Now.
In the Search Results, right-click on the computer and select Move.
Browse to the new parent container or OU and click on it.
With the Windows Server 2003 version of Active Directory Users and Computers you can also use the new drag and drop functionality to move computers and other objects.
> dsmove "<
ComputerDN>" -newparent "<
' 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
You 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 ...