Solved

exclude a mailbox from a dynamic distribution list

Posted on 2013-12-16
3
2,031 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will help you understand what HashTables are and how to use them in PowerShell.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now