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_DSRM
  12. Language=English
  13. Description: This command deletes objects from the directory.
  14. Syntax: dsrm <ObjectDN ...>
  15. [-noprompt]
  16. [-subtree [-exclude]]
  17. [{-s <Server> | -d <Domain>}]
  18. [-u <UserName>]
  19. [-p {<Password> | *}]
  20. [-C]
  21. [-q]
  22. Parameters:
  23. Value Description
  24. <ObjectDN ...> Required/stdin. List of one or more
  25. distinguished names (DNs) of objects to delete.
  26. If this parameter is omitted it is
  27. taken from standard input (stdin).
  28. -noprompt Silent mode: do not prompt for delete confirmation.
  29. -subtree Delete object and all objects in the subtree under it.
  30. -exclude Exclude the object itself when deleting its subtree.
  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> | *}
  38. Password for the user <UserName>. If * is used,
  39. then the command prompts you for the password.
  40. -C Continuous operation mode: report errors but continue with
  41. next object in argument list when multiple target objects
  42. are specified. Without this option, command exits on first
  43. error.
  44. -q Quiet mode: suppress all output to standard output.
  45. Remarks:
  46. If a value that you supply contains spaces, use quotation marks
  47. around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
  48. If you enter multiple values, the values must be separated by spaces
  49. (for example, a list of distinguished names).
  50. Examples:
  51. To remove an organizational unit (OU) called "Marketing" and all the objects under that OU,
  52. use the following command:
  53. dsrm -subtree -noprompt -C ou=Marketing,dc=microsoft,dc=com
  54. To remove all objects under the OU called "Marketing" but leave the OU intact,
  55. use the following command with the -exclude parameter:
  56. dsrm -subtree -exclude -noprompt -C "ou=Marketing,dc=microsoft,dc=com"
  57. Directory Service command-line tools help:
  58. dsadd /? - help for adding objects.
  59. dsget /? - help for displaying objects.
  60. dsmod /? - help for modifying objects.
  61. dsmove /? - help for moving objects.
  62. dsquery /? - help for finding objects matching search criteria.
  63. dsrm /? - help for deleting objects.
  64. .
  65.