Solved

exclude a mailbox from a dynamic distribution list

Posted on 2013-12-16
3
2,133 Views
Last Modified: 2014-01-17
Hello,

i need to exclude one mailbox from a dynamic distribution list.
this dynamic distribution list select all user in specific Organisationnel unit.
i cannot move the user from this OU.
i think, a powershell command can help me to exclude the user from this dynamic distribution list for exemple with a condition on custom attribute 1 = nomember.

thanks for your help
0
Comment
Question by:cawasaki
  • 2
3 Comments
 
LVL 18

Expert Comment

by:suriyaehnop
ID: 39721699
I think you have already have an answer. One thing you can do is to set the custom attribute of the user, say set the custome attribute no.1 to Not Member then you change/re-create the dynamic query a little with include user at OU but not custom attribute no.1
0
 

Author Comment

by:cawasaki
ID: 39721711
hi, yes but i need a correct powershell command :)
0
 
LVL 18

Accepted Solution

by:
suriyaehnop earned 500 total points
ID: 39721805
I think it is better you do this way, for user who will member of this Dynamic will have a custom attribute set say 1


Exchange Management Shell command completed:
new-DynamicDistributionGroup -Name 'DL Test OU' -RecipientContainer 'cpadm001.local/Test OU' -IncludedRecipients 'MailboxUsers' -ConditionalCustomAttribute1 'TN' -OrganizationalUnit 'cpadm001.local/Test OU' -Alias 'DL_Test_OU'

How to modify existing Dynamic group:

Set-DynamicDistributionGroup -ConditionalCustomAttribute1 'TN','SN' -Identity 'cpadm001.local/Test OU/DL Test OU'
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question