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
Is there a way, in PowerShell, to get the date when a user account was added to an AD group?
I don't think this is an attribute in AD, so only if you could scrape it from a log entry.
Yes assuming that you have the ActivieDirectory tools installed on your workstation or logged into a Domain Controller the following should work.
Get-ADUser 'UserName' -Properties * | select whenCreated
Oops responded too soon, didn't see the part where a user was added to a group...
That's what I thought. Thanks anyway.
Look here https://gallery.technet.microsoft.com/scriptcenter/Find-the-time-a-user-was-a0bfc0cf
The topic ‘Get Date A User Is Added To A Group’ is closed to new replies.