Dsrm Command In Windows Server 2008

This article shows how to use Dsrm command in Windows server 2008 operating system and syntax related with it.
  • 2993


Dsrm command is used to delete an object or the complete subtree under an object. While in most cases it's probably simpler to delete single objects from within the active directory users and  computer console, user can speed up the deletion of multiple objects with the Dsrm command. Syntax used for Dsrm command is given below.


dsrm <ObjectDN> . . . [-subtree [-exclude]] [-noprompt] [{-s <Server> | -d <Domain>}] [-u <UserName>] [-p {<Password> | *}][-c][-q][{-uc | -uco | -uci}]

Parameters For Dsrm

Parameter Description
<ObjectDN> Defines the distinguished names of objects to delete.
-subtree [-exclude] Defines that both the object and all objects contained in the subtree under that object should be deleted.
-noprompt Sets the optional silent mode, which prevents prompts that ask you to confirm deletion of each object.
{-s <Server> | -d <Domain>} Connects a computer to a remote server or domain that you specify.
-u <UserName> Defines the user name with which the user logs on to a remote server.
-p {<Password> | *} Defines to use either a password or an asterisk (*) to log on to a remote server.
-c Reports errors, but continues with the next object in the argument list when user specify multiple target objects.
-q Suppresses all output to standard output.
{-uc | -uco | -uci} Defines that Dsrm formats output or input data in Unicode.
/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.