Leaked source code of windows server 2003
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.

114 lines
4.0 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_DESCRIPTION
  12. Language=English
  13. Description: This command moves or renames an object within the directory.
  14. .
  15. MessageId=2
  16. SymbolicName=USAGE_DSMOVE_SYNTAX
  17. Language=English
  18. Syntax: dsmove <ObjectDN>
  19. [-newparent <ParentDN>]
  20. [-newname <NewName>]
  21. [{-s <Server> | -d <Domain>}]
  22. [-u <UserName>]
  23. [-p {<Password> | *}]
  24. [-q]
  25. [{-uc | -uco | -uci}]
  26. .
  27. MessageId=3
  28. SymbolicName=USAGE_DSMOVE_PARAMETERS
  29. Language=English
  30. Parameters:
  31. Value Description
  32. <ObjectDN> Required/stdin. Distinguished name (DN)
  33. of object to move or rename.
  34. If this parameter is omitted it
  35. will be taken from standard input (stdin).
  36. -newparent <ParentDN> DN of the new parent location to which object
  37. should be moved.
  38. -newname <NewName> New relative distinguished name (RDN) value
  39. to which object should be renamed.
  40. {-s <Server> | -d <Domain>}
  41. -s <Server> connects to the domain controller (DC)
  42. with name <Server>.
  43. -d <Domain> connects to a DC in domain <Domain>.
  44. Default: a DC in the logon domain.
  45. -u <UserName> Connect as <UserName>. Default: the logged in user.
  46. User name can be: user name, domain\user name,
  47. or user principal name (UPN).
  48. -p <Password> Password for the user <UserName>.
  49. If * is used, then the command prompts for a
  50. password.
  51. -q Quiet mode: suppress all output to standard output.
  52. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  53. formatted in Unicode.
  54. -uco Specifies that output to pipe or file is
  55. formatted in Unicode.
  56. -uci Specifies that input from pipe or file is
  57. formatted in Unicode.
  58. .
  59. MessageId=4
  60. SymbolicName=USAGE_DSMOVE_REMARKS
  61. Language=English
  62. Remarks:
  63. If a value that you supply contains spaces, use quotation marks
  64. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  65. If you enter multiple values, the values must be separated by spaces
  66. (for example, a list of distinguished names).
  67. Commas that are not used as separators in distinguished names must be
  68. escaped with the backslash ("\") character
  69. (for example, "CN=Company\, Inc.,CN=Users,DC=microsoft,DC=com").
  70. Backslashes used in distinguished names must be escaped with a backslash
  71. (for example,
  72. "CN=Sales\\ Latin America,OU=Distribution Lists,DC=microsoft,DC=com").
  73. .
  74. MessageId=5
  75. SymbolicName=USAGE_DSMOVE_EXAMPLES
  76. Language=English
  77. Examples:
  78. The user object for the user Jane Doe can be renamed to Jane Jones
  79. with the following command:
  80. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newname "Jane Jones"
  81. The same user can be moved from the Sales organization to the Marketing
  82. organization with the following command:
  83. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com"
  84. -newparent ou=Marketing,dc=microsoft,dc=com
  85. The rename and move operations for the user can be combined with the
  86. following command:
  87. dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com"
  88. -newparent ou=Marketing,dc=microsoft,dc=com -newname "Jane Jones"
  89. Directory Service command-line tools help:
  90. dsadd /? - help for adding objects.
  91. dsget /? - help for displaying objects.
  92. dsmod /? - help for modifying objects.
  93. dsmove /? - help for moving objects.
  94. dsquery /? - help for finding objects matching search criteria.
  95. dsrm /? - help for deleting objects.
  96. .
  97.