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

This topic contains 1 reply, has 2 voices, and was last updated by  JC 2 years, 9 months ago.

  • Author
    Posts
  • #22529

    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

    JC
    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.