取单个通讯组属性 ``` Get-DistributionGroup -identity it.tsg -ResultSize Unlimited |` Select Name,Displayname,GroupType,PrimarySmtpAddress,` @{n='RejectMessagesFromSendersOrMembers';e={$_.RejectMessagesFromSendersOrMembers-join';'}},` @{n='RejectMessagesFrom';e={$_.RejectMessagesFrom-join';'}},` @{n='RejectMessagesFromDLMembers';e={$_.RejectMessagesFromDLMembers-join';'}}` | Export-Csv D:\scripts\group.csv -NoTypeInformation -Encoding Default ``` 获取所有通讯组属性 ``` Get-DistributionGroup -ResultSize Unlimited |` Select Name,Displayname,GroupType,PrimarySmtpAddress,` @{n='RejectMessagesFromSendersOrMembers';e={$_.RejectMessagesFromSendersOrMembers-join';'}},` @{n='RejectMessagesFrom';e={$_.RejectMessagesFrom-join';'}},` @{n='RejectMessagesFromDLMembers';e={$_.RejectMessagesFromDLMembers-join';'}}` | Export-Csv D:\scripts\group.csv -NoTypeInformation -Encoding Default ``` 您也可以参考如下微信公众号获取更多资讯 ![](https://s1.51cto.com/images/blog/201903/25/23d0274d51b08314b3ac6180c93c1b8b.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)