Get-ADGroupMember $groupname | select SamAccountName |
%{ Get-ADUser $_.samaccountname -Properties mail } |
%{Write-Output"$($_.samaccountname), $($_.mail)" }

Annunci