Get-DistributionGroupMember –identity “groupname” | ft name, primarysmtpaddress, alias, samaccountname | Export-CSV c:\groupname.csv
Get-DistributionGroupMember –identity “groupname” | ft name, primarysmtpaddress, alias, samaccountname | Export-CSV c:\groupname.csv