Exchange 2010 gets the members of a dynamic distribution group
Recently migrated mailbox system, the new AD and the old AD organizational structure is different, involving the "dynamic distribution group" can not be applied.
Export dynamic distribution group members here, create distribution groups in the new environment, and then add members in bulk.
[PS] D:\ > $fte = Get-DynamicDistributionGroup xxxxxx [PS] D:\ > Get-Recipient-RecipientPreviewFilter $fte.RecipientFilter-OrganizationalUnit $fte.RecipientContainer | select Name,SamaccountName,PrimarySmtpAddress [PS] D:\ > Get-Recipient-RecipientPreviewFilter $fte.RecipientFilter-OrganizationalUnit $fte.RecipientContainer | select Name,SamaccountName,PrimarySmtpAddress | Export-Csv F:\ scripts\ dynamicdistributiongroup.csv-Encoding utf8
Reference from: https://technet.microsoft.com/zh-cn/library/bb232019(v=exchg.160).aspx