#导出组成员:
Get-DynamicDistributionGroup "群发" $container=(Get-DynamicDistributionGroup "群发").Recipientcontainer $filter=(Get-DynamicDistributionGroup "群发").RecipientFilter Get-Recipient -RecipientPreviewFilter $filter -OrganizationalUnit $container|Export-Csv d: n.csv -Encoding utf8 -NoTypeInformation
#导出发件人账号:
Add-PSSnapin microsoft.exchan* Import-Module activedirectory $users = (Get-DynamicDistributionGroup uuqf).AcceptMessagesOnlyFromSendersOrMembers foreach ($u in $users) { (Get-ADUser $u.distinguishedname).UserPrincipalName }
导出通讯组:Get-DistributionGroup
导出动态组:Get-DynamicDistributionGroup
动态组添加发件人权限:
Get-DynamicDistributionGroup IT系统支持动态组1-1|SetDynamicDistributionGroup -AcceptMessagesOnly From user01,user02 #user01,user02就是用户名
Set-DistributionGroup allstaff -AcceptMessagesOnlyFrom @{add="Aileen Duff"}