How to change an attribute on a deleted object in ADLDS

Welcome Forums General PowerShell Q&A How to change an attribute on a deleted object in ADLDS

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #256904
      Participant
      Topics: 1
      Replies: 0
      Points: 1
      Rank: Member

      Get-ADObject can get objects using the IncludeDeletedObjects switch, but I can’t find a corresponding function with set-ADObject. The issue is that for some reason the UPN attribute is being retained when the object is deleted (even though searchFlags is set to not). I need to clear the UPN attribute from the deleted objects; I don’t want to recover them to do it, and I don’t want to purge them. This can be done via LDIFDE, but I would prefer to use powershell. When using set-object and specifying the DN for the object, but the result is that the object cannot be found. Using the same DN (with includedeletedobjects) and get-adobject will get the object, so I know the value is correct (even storing the get object in a variable, and using the variable attributes to ensure correct values, results in object cannot be found).

      • This topic was modified 1 week, 4 days ago by kenwood97.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.