Powershell – Get members

Get group member list including email with powershell

import-module activedirectory
Get-ADGroupMember “GROUP” | select samaccountname | %{Get-ADUser $_.samaccountname -Properties mail} | %{write-output “$($_.name) `t`t  $($_.mail)”}

Leave a Reply

Your email address will not be published. Required fields are marked *