DistributionGroup

 

 

Distribution Group 是不同於 Dynamic Distribution Group 的 !!

 


查看有什麼 Group

 

Get-DistributionGroup

Output:

Name                DisplayName         GroupType           PrimarySmtpAddress

 


Group Member

 

Get-DistributionGroupMember –identity "group name"

Get-DistributionGroupMember –identity “group name” | ft name, primarysmtpaddress

Get-DistributionGroupMember –identity “group name” | ft name, primarysmtpaddress | Export-CSV c:\members.csv

 


DynamicDistributionGroup

 

Get-DynamicDistributionGroup

output:

Name                                    ManagedBy
----                                    ---------

$members = Get-DynamicDistributionGroup -Identity "dynamicgroupname"

Get-Recipient -RecipientPreviewFilter $members.RecipientFilter | select Displayname,PrimarySmtpAddress > membersall.txt

 

 

Creative Commons license icon Creative Commons license icon