I have a short line for the above mentioned:
Get-ADGroup "group" -Properties member | Select-Object -ExpandProperty member | Get-ADObject | select name | sort name
which provides the names of the group members.
i want the email addresses of the users and contacts.
I’ve tried: select name,e-mail / name,emailaddress / name,mail - nothing worked for me, all returned empty <>
Please Help, thanks.