Announcement

Collapse
No announcement yet.

Deleting stale computer accounts

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deleting stale computer accounts

    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

  • #2
    First, does the DSQUERY (on its own) return the correct list?
    Second, have you tried the alternative syntax here: https://www.petri.com/forums/forum/m...sult-into-dsrm
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Originally posted by Ossian View Post
      First, does the DSQUERY (on its own) return the correct list?
      Second, have you tried the alternative syntax here: https://www.petri.com/forums/forum/m...sult-into-dsrm


      Yes the dsquery is returning the correct list

      Comment

      Working...
      X