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” |
This example removes the specified user account. You are prompted to confirm the Removal, but you can suppress |
Filed under: Active Directory, Windows Server 2003, Windows Server 2008 Tagged: Active Directory commands, DS Commands, DSRM, remove objects
