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

Welcome Forums General PowerShell Q&A Finding date when a AD Account was disabled/Re-enabled

This topic contains 1 reply, has 2 voices, and was last updated by

YCE
 
Participant
3 years, 8 months ago.

  • Author
    Posts
  • #22529

    Participant
    Points: 0
    Rank: Member

    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
    YCE

    Participant
    Points: 0
    Rank: Member

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

    Found on other forum 🙂

The topic ‘Finding date when a AD Account was disabled/Re-enabled’ is closed to new replies.