DSRM commands

DSRM commands

 

Using DSRM commands to delete AD objects

(Before using DSRM ensure you have proper backup in place, as may delete some other object by accident)

1. How to delete single subnets in AD Sites & Services ?

> dsrm CN=10.1.1.0/30),CN=Subnets,CN=Sites,CN=Configuration,DC=Testing,DC=Test,DC=com

> dsrm "CN=(provide the Subnet name Eg: 10.1.1.0/30),CN=Subnets,CN=Sites,CN=Configuration,DC=Testing,DC=Test,DC=com"

2. How to delete bulk subnets in AD Sites & Services ?

> for /f %i in (filename.txt) do dsrm %i  >>output.txt

Enter the subnets in a text file Eg : "filename.txt" which you want to delete.

3. How to delete single user using DSRM ?

> dsrm CN=balraj, anthony,OU=Users,OU=,DC=Test1,DC=Test,DC=com
> dsrm "Provide the DN with inverted commas">

4. How to delete bulk users using DSRM ?

> for /f %i in (filename.txt) do dsrm %i  >>output.txt
Type the full DN's in a text file Eg : "filename.txt" which you want to delete.


Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Maheshkumar S Tiwari edited Revision 3. Comment: Added tags

Page 1 of 1 (1 items)