Solved

exclude a mailbox from a dynamic distribution list

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create an email address policy 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 Mail Flow…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

832 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