I've seen a loads questions regarding the use of the dsrm command to delete old objects in Active Directory but unfortunately it doesn't seem to work for me. I have been tasked with removing old objects in AD and I was running dsquery computer -inactive 52 -limit 0 to obtain objects a year or more old which worked fine. I then ran the same command but with | dsrm added but I get a "The directory service can perform the requested operation only on a leaf object". What do I need to do to rectify this?
I know there are 3rd party tools but my company aren't will to pay for such a product
For info purposes the domain is running at the Windows 2003 Functional level