Home > Commands A-M > Commands Ds-Dz

DSRM


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Deletes an object of a specific type or any general object from the directory.


Syntax

DSRM /?

DSRM object_dn ... [-c] [-noprompt] [-p {password | *}] [-q] [{-s server | -d domain}] [-subtree [-exclude]] [-u user_name] [-uc | -uci | -uco]


Parameters
object_dn (NTXP)
Specifies the distinguished names of objects to delete. If omitted, obtained through standard input (stdin) to support piping of output from another command.

Switches
/? (NTXP)
Display help.
-c (NTXP)
Reports errors, but continues with the next object in the argument list when multiple target objects are specified (continuous operation mode). If omitted, the command exits on the first error.
-d domain (NTXP)
Connects the computer to a specified domain. By default, the computer is connected to the domain controller in the logon domain.
-exclude (NTXP)
Exclude base object given by object_dn.
-noprompt (NTXP)
Sets the optional silent mode, which does not prompt to confirm deletion of each object. By default, you are prompted to confirm each deletion.
-p {password | *} (NTXP)
Specifies to use either a password or a * to log on to a remote server. If *, then prompted for password.
-q (NTXP)
Suppresses all output to standard output (quiet mode).
-s server (NTXP)
Connects the computer to a specified server.
-subtree (NTXP)
Specifies that both the object and all objects contained in the subtree under that object should be deleted. By default, only the base object specified is deleted.
-u user_name (NTXP)
Specifies the user name with which user will log on to a remote server. By default, the logged on user name is used. You can specify a user name using one of the formats:
      user name
      domain\user name
      user principal name (UPN)
-uc | -uci | -uco (NT2003)
Specifies that output or input data is formatted in Unicode:

Related

none.


Notes

none.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003

Last Updated: 2003/07/28
Direct corrections or suggestions to: Rick Lively