dsmove


dsmove new in WS2003

Moves or renames an object in Active Directory.

Syntax

 dsmove   ObjectDN   [-newname   NewRDN   ] [-newparent   ParentDN   ]  [{-s   Server   -d   Domain   }] [-u   UserName   ] [-p {   Password   *}] [-q] 

Options

ObjectDN

The distinguished name of the object to be moved or renamed .

-newname NewRDN

Renames the object using the specified relative distinguished name.

-newparent ParentDN

Moves the object to the location specified by the distinguished name of its new parent container.

{-s Server -d Domain}

Connects to a specified server or domain to run the command (if omitted, defaults to domain controller in logon domain).

[-u UserName] [-p {Password *}]

Credentials for running the command. Specify UserName as domain\ user or user@domain . If -p * , prompts for password.

-q

Runs in quiet mode to suppress standard output of command.

Examples

Move user account for Bob Jones from Sales OU to Customer Support OU:

  dsmove CN=bjones,OU=Sales,DC=mtit,DC=local -newparent "OU=Customer   Support,DC=mtit, DC=local"  dsmove succeeded:CN=bjones,OU=Sales,DC=mtit,DC=local 

Rename username for Bob Jones from bjones to bobj :

  dsmove "CN=bjones,OU=Customer Support,DC=mtit,DC=local" -newname bobj  dsmove succeeded:CN=bjones,OU=Customer Support,DC=mtit,DC=local 

Notes

  • You can move and rename an object in one step using -newparent and -newname switches in a single command.

  • dsmove can move objects only within a domain. To move objects between domains, use MoveTree from Support Tools on the product CD.

See Also

Active Directory , dsadd , dsget , dsmod , dsquery , dsrm , Groups , Users



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net