Finding date when a AD Account was disabled/Re-enabled

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Jarek C. Jarek C. 1 year, 10 months ago.

  • Author
    Posts
  • #22529
    Profile photo of Yogesh Makwana
    Yogesh Makwana
    Participant

    Can someone please help me to find out actual date when a AD User Account was disabled and then re-enabled and disabled again.
    Please help!

  • #22533
    Profile photo of Jarek C.
    Jarek C.
    Participant

    [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().DomainControllers[0].GetReplicationMetadata('CN=User1,OU=DisbaledUsers,DC=Domain,DC=com').Item('userAccountControl')

    Found on other forum 🙂

You must be logged in to reply to this topic.