Exchange PowerShell
New-DistributionGroup
New-DistributionGroup -Name "DDD" -OrganizationalUnit "BBB" -SAMAccountName "AAA" –Alias "AAA" –ManagedBy “CCC”
Get-DistributionGroup
微軟文檔(https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/get-distributiongroup?view=exchange-ps )
Get-DistributionGroupMember -Identity "XXX" | Format-Table name,PrimarySmtpAddress,SamAccountName >> "c:\XXX\XXX.csv"
DG的名字是:DG Amway Management
它在ADOU的位置:ianext.com/Distribution Groups/Messaging
用戶登錄名:dg_Amway_management
郵件名字:dg_Amway_management
組別的管理員:Amway