Powershell to get Group Membership

I am trying to create a powershell script that will allow me to get the details of a security group and also show me the last login date for a user that is the member of that group.

This is what i have so far:

Get-ADGroupMember -Identity "Outlook Anywhere" -Recursive | Get-ADObject -Properties Name, DisplayName, samAccountName |Export-Csv -path c:\Outlook_Anywhere.csv

This gives me the details of the members but I want to be able to also include the last login date for each user in the group. Can anyone point me in the right direction please?

Thanks

February 23rd, 2015 6:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics