Solved

Resource mailboxes incorrectly being included in Dynamic Distribution Group

Posted on 2014-03-27
11
1,016 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
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 discusses moving either the default database or any database to a new volume.

757 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

20 Experts available now in Live!

Get 1:1 Help Now