Get Date A User Is Added To A Group

Welcome Forums General PowerShell Q&A Get Date A User Is Added To A Group

This topic contains 5 replies, has 4 voices, and was last updated by

 
Participant
3 years, 4 months ago.

  • Author
    Posts
  • #28505

    Participant
    Points: 1
    Rank: Member

    Is there a way, in PowerShell, to get the date when a user account was added to an AD group?

    Thank you,
    Mike

  • #28506

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    I don't think this is an attribute in AD, so only if you could scrape it from a log entry.

  • #28507

    Participant
    Points: 1
    Rank: Member

    Yes assuming that you have the ActivieDirectory tools installed on your workstation or logged into a Domain Controller the following should work.

    Import-Module activedirectory
    Get-ADUser 'UserName' -Properties * | select whenCreated
    
  • #28508

    Participant
    Points: 1
    Rank: Member

    Oops responded too soon, didn't see the part where a user was added to a group...

  • #28509

    Participant
    Points: 1
    Rank: Member

    That's what I thought. Thanks anyway.

  • #28510

    Participant
    Points: 0
    Rank: Member

The topic ‘Get Date A User Is Added To A Group’ is closed to new replies.