Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.9 KiB

  1. ;//+-------------------------------------------------------------------------
  2. ;//
  3. ;// Microsoft Windows
  4. ;//
  5. ;// Copyright (C) Microsoft Corporation, 2000 - 2000
  6. ;//
  7. ;// File: usage.mc
  8. ;// Author: micretz
  9. ;//--------------------------------------------------------------------------
  10. MessageId=1
  11. SymbolicName=USAGE_DSMOVE
  12. Language=English
  13. Description: This command moves or renames an object within the directory.
  14. Syntax: dsmove <ObjectDN>
  15. [-newparent <ParentDN>]
  16. [-newname <NewName>]
  17. [{-s <Server> | -d <Domain>}]
  18. [-u <UserName>]
  19. [-p {<Password> | *}]
  20. [-q]
  21. Parameters:
  22. Value Description
  23. <ObjectDN> Required/stdin. Distinguished name (DN)
  24. of object to move or rename.
  25. If this parameter is omitted it
  26. will be taken from standard input (stdin).
  27. -newparent <ParentDN> DN of the new parent location to which object
  28. should be moved.
  29. -newname <NewName> New relative distinguished name (RDN) value
  30. to which object should be renamed.
  31. {-s <Server> | -d <Domain>}
  32. -s <Server> connects to the domain controller (DC) with name
  33. <Server>.
  34. -d <Domain> connects to a DC in domain <Domain>.
  35. Default: a DC in the logon domain.
  36. -u <UserName> Connect as <UserName>. Default: the logged in user.
  37. -p <Password> Password for the user <UserName>.
  38. If * is used, then the command prompts for a password.
  39. -q Quiet mode: suppress all output to standard output.
  40. Remarks:
  41. If a value that you supply contains spaces, use quotation marks
  42. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  43. If you enter multiple values, the values must be separated by spaces
  44. (for example, a list of distinguished names).
  45. Examples:
  46. The user object for the user Jane Doe can be renamed to Jane Jones
  47. with the following command:
  48. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newname "Jane Jones"
  49. The same user can be moved from the Sales organization to the Maketing
  50. organization with the following command:
  51. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newparent ou=Marketing,dc=microsoft,dc=com
  52. The rename and move operations for the user can be combined with the
  53. following command:
  54. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newparent ou=Marketing,dc=microsoft,dc=com -newname "Jane Jones"
  55. Directory Service command-line tools help:
  56. dsadd /? - help for adding objects.
  57. dsget /? - help for displaying objects.
  58. dsmod /? - help for modifying objects.
  59. dsmove /? - help for moving objects.
  60. dsquery /? - help for finding objects matching search criteria.
  61. dsrm /? - help for deleting objects.
  62. .
  63.