最近遷移郵箱系統,新AD和老AD組織架構不一樣,所涉及到「動態通信組」就不能應用。架構
在此導出動態通信組成員,在新環境在建立 通信組 ,而後批量添加成員。ide
[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
參考自:https://technet.microsoft.com/zh-cn/library/bb232019(v=exchg.160).aspxcode