Author Posts

August 12, 2015 at 10:50 am

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

Thank you,

August 12, 2015 at 10:56 am

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

August 12, 2015 at 10:57 am

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

August 12, 2015 at 10:58 am

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

August 12, 2015 at 11:00 am

That's what I thought. Thanks anyway.