首页 > 其他 > 详细

Get members for ‘Dynamic Distribution Group’

时间:2017-01-22 16:43:42      阅读:155      评论:0      收藏:0      [点我收藏+]

Exchange: List all members for ‘Dynamic Distribution Group’

 https://anandthearchitect.com/page/3/

 

Since Dynamic Distribution Group lists its members by running the query (to Get-Recipient command) whenever someone sends email to this DL. But how do we troubleshoot if a user is not receiving email from this DL. Why would this user left out? Exchange 2010 onwards Microsoft provided PowerShell is the only way to check the members of Dynamic DL. I am going to explain how to do it?

We are going to use the following commands:

Get-DynamicDistributionGroup and Get-Recipient.

First get the dynamic DL named DL-NorthAmerica and assigned to variable $dl.

$dl = Get-DynamicDistributionGroup “DL-NorthAmerica”

Next run the query and list the recipients and assigned to a variable $allr

$allr = Get-Recipient -RecipientPreviewFilter $dl.RecipientFilter -OrganizationalUnit $dl.RecipientContainer –ResultSize Unlimited

List all the recipients with any other information you want.

$allr | Select-Object Name,PrimarySmtpAddress,Title,Department,city

If you want you can save the results to a CSV file.

$allr | Select-Object Name,PrimarySmtpAddress,Title,Department,city | Export-Csv -Path “$pwd\ShoreTel-GlobalMembers.csv” –NoTypeInformation

Any questions, leave me  reply, will respond.

Get members for ‘Dynamic Distribution Group’

原文:http://www.cnblogs.com/junjiany/p/6340477.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!