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.

105 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_DSRM_DESCRIPTION
  12. Language=English
  13. Description: This command deletes objects from the directory.
  14. .
  15. MessageId=2
  16. SymbolicName=USAGE_DSRM_SYNTAX
  17. Language=English
  18. Syntax: dsrm <ObjectDN ...> [-noprompt] [-subtree [-exclude]]
  19. [{-s <Server> | -d <Domain>}] [-u <UserName>]
  20. [-p {<Password> | *}] [-c] [-q] [{-uc | -uco | -uci}]
  21. .
  22. MessageId=3
  23. SymbolicName=USAGE_DSRM_PARAMETERS
  24. Language=English
  25. Parameters:
  26. Value Description
  27. <ObjectDN ...> Required/stdin. List of one or more
  28. distinguished names (DNs) of objects to delete.
  29. If this parameter is omitted it is
  30. taken from standard input (stdin).
  31. -noprompt Silent mode: do not prompt for delete confirmation.
  32. -subtree [-exclude] Delete object and all objects in the subtree under it.
  33. -exclude excludes the object itself
  34. when deleting its subtree.
  35. {-s <Server> | -d <Domain>}
  36. -s <Server> connects to the domain controller (DC) with
  37. name <Server>.
  38. -d <Domain> connects to a DC in domain <Domain>.
  39. Default: a DC in the logon domain.
  40. -u <UserName> Connect as <UserName>. Default: the logged in user.
  41. User name can be: user name, domain\user name,
  42. or user principal name (UPN).
  43. -p {<Password> | *}
  44. Password for the user <UserName>. If * is used,
  45. then the command prompts you for the password.
  46. -c Continuous operation mode: report errors but continue
  47. with next object in argument list when multiple
  48. target objects are specified.
  49. Without this option, command exits on first error.
  50. -q Quiet mode: suppress all output to standard output.
  51. {-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
  52. formatted in Unicode.
  53. -uco Specifies that output to pipe or file is
  54. formatted in Unicode.
  55. -uci Specifies that input from pipe or file is
  56. formatted in Unicode.
  57. .
  58. MessageId=4
  59. SymbolicName=USAGE_DSRM_REMARKS
  60. Language=English
  61. Remarks:
  62. If a value that you supply contains spaces, use quotation marks
  63. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  64. If you enter multiple values, the values must be separated by spaces
  65. (for example, a list of distinguished names).
  66. Commas that are not used as separators in distinguished names must be
  67. escaped with the backslash ("\") character
  68. (for example, "CN=Company\, Inc.,CN=Users,DC=microsoft,DC=com").
  69. Backslashes used in distinguished names must be escaped with a backslash
  70. (for example,
  71. "CN=Sales\\ Latin America,OU=Distribution Lists,DC=microsoft,DC=com").
  72. .
  73. MessageId=5
  74. SymbolicName=USAGE_DSRM_EXAMPLES
  75. Language=English
  76. Examples:
  77. To remove an organizational unit (OU) called "Marketing" and all the objects
  78. under that OU, use the following command:
  79. dsrm -subtree -noprompt -c ou=Marketing,dc=microsoft,dc=com
  80. To remove all objects under the OU called "Marketing" but leave
  81. the OU intact, use the following command with the -exclude parameter:
  82. dsrm -subtree -exclude -noprompt -c "ou=Marketing,dc=microsoft,dc=com"
  83. Directory Service command-line tools help:
  84. dsadd /? - help for adding objects.
  85. dsget /? - help for displaying objects.
  86. dsmod /? - help for modifying objects.
  87. dsmove /? - help for moving objects.
  88. dsquery /? - help for finding objects matching search criteria.
  89. dsrm /? - help for deleting objects.
  90. .
  91.