Solved

Resource mailboxes incorrectly being included in Dynamic Distribution Group

Posted on 2014-03-27
11
1,117 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

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.
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
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…

773 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