Deleting stale computer accounts Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Microsoft Networking and Management Services › Active Directory › Deleting stale computer accounts This topic has 2 replies, 3 voices, and was last updated 5 years, 1 month ago by kgoering. Viewing 1 post (of 1 total) Author Posts AnishkMember Aug 05, 2015 at 4:20 am #165635 Hi, We are deleting the computers which have not contacted for last 6 weeks. The dsquery given is dsquery computers “OU=computer,OU=X,DC=Y,DC=Z” -inactive 6 -limit 0 | dsrm -noprompt The error result was dsrm failed. The directory service can perform the requested operation only on a leaf object. Please help Regards, Anish Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.