(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.
Maheshkumar S Tiwari edited Revision 3. Comment: Added tags