Get-DistributionGroup-ResultSize Unlimited | SelectName,Displayname,GroupType,PrimarySmtpAddress,@{n='RejectMessagesFromSendersOrMembers';e={$_.RejectMessagesFromSendersOrMembers-join';'}},@{n='RejectMessagesFrom';e={$_.RejectMessagesFrom-join';'}},@{n='RejectMessagesFromDLMembers';e={$_.RejectMessagesFromDLMembers-join';'}} | Export-Csv D:\huangjh\Get-DistributionGroup.csv -NoTypeInformation-Encoding utf8