Quantcast
Channel: Server Geeks » Active Directory
Viewing all articles
Browse latest Browse all 13

DS Commands – DSRM

$
0
0

Removing Objects with DSRM

Finally, you can remove objects with the dsrm command. The basic syntax is shown in the following table.

dsrm Command

Comments

Delete an object.

Dsmove dn -newparent parentdn [-noprompt]

C:\>dsrm “cn=joe,ou=east,ou=sales,dc=habib,dc=local”

C:\>dsrm “cn=joe,ou=east,ou=sales,dc=habib,dc=local”
-noprompt

This example removes the specified user account. You are prompted to confirm the Removal, but you can suppress
the prompt with the -noprompt switch.


Filed under: Active Directory, Windows Server 2003, Windows Server 2008 Tagged: Active Directory commands, DS Commands, DSRM, remove objects

Viewing all articles
Browse latest Browse all 13

Trending Articles