Solved

Resource mailboxes incorrectly being included in Dynamic Distribution Group

Posted on 2014-03-27
11
1,075 Views
Last Modified: 2014-04-14
I have a DDG that I don't want to include Resource mailboxes. Properties, Filter tab has "The following specific types" button selected, and "Resource mailboxes" unchecked.

If I run get-recipient for the DDG, it lists all the resources (conf rooms, equipment, etc.), as well as the users I want in the DDG. Get-recipient displays RecipientType as UserMailbox, even though EMC shows them as Resources. I assume that is why the Resource mailboxes are included?

How do I change the resources to not be UserMailboxes? I would prefer not to make a filter using set-dynamicdistributiongroup.
0
Comment
Question by:hoaglalj1
  • 3
  • 2
  • 2
11 Comments
 
LVL 13

Expert Comment

by:lciprianionut
ID: 39966294
Only with Set-DynamicDistributionGroup you will manage to do it. You need to filter deep.
All mailbox recipients have RecipientType = UserMailbox, but look at RecipientTypeDetails property, specially at RoomMailbox, EquipmentMailbox
0
 

Author Comment

by:hoaglalj1
ID: 39969047
Are you saying I should create a filter RecipientTypepDetails ne 'RoomMailbox' or EquipmentMailbox'?
0
 
LVL 13

Expert Comment

by:lciprianionut
ID: 39969305
Yes, you should exclude those 2 categories. I know I did it in the past such thing, but I don't have with me right now the scripts.
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Accepted Solution

by:
hoaglalj1 earned 0 total points
ID: 39970130
The filter is working correctly for Resources and Rooms, by using the RecipientTypeDetailsValue parameter.

Set-DynamicDistributionGroup all-users -RecipientFilter {((((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsvalue -eq 'RoomMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'EquipmentMailbox')))}
0
 
LVL 15

Expert Comment

by:jrhelgeson
ID: 39987748
Administrative Comment:
This question does not need additional help - it needs to be closed with points awarded.
The filter is working correctly for Resources and Rooms, by using the RecipientTypeDetailsValue parameter.

Set-DynamicDistributionGroup all-users -RecipientFilter {((((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser'))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetailsvalue -eq 'RoomMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'EquipmentMailbox')))}
0
 
LVL 15

Expert Comment

by:jrhelgeson
ID: 39989108
hoaglalj1 - Be a good sport and award the points to the person who helped you get the question answered - namely "lciprianionut"

You can include your answer as part of the solution, you just don't get awarded any points.
0
 

Author Closing Comment

by:hoaglalj1
ID: 39998535
The above Powershell line provided the correct filtering
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
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.
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

25 Experts available now in Live!

Get 1:1 Help Now