hoaglalj1
asked on
Resource mailboxes incorrectly being included in Dynamic Distribution Group
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-dynamicdistributiongro up.
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-dynamicdistributiongro
ASKER
Are you saying I should create a filter RecipientTypepDetails ne 'RoomMailbox' or EquipmentMailbox'?
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Administrative Comment:
This question does not need additional help - it needs to be closed with points awarded.
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(RecipientTypeDetails Value -eq 'MailboxPlan')) -and (-not(RecipientTypeDetails Value -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetails Value -eq 'ArbitrationMailbox')) -and (-not(RecipientTypeDetails value -eq 'RoomMailbox')) -and (-not(RecipientTypeDetails Value -eq 'EquipmentMailbox')))}
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.
You can include your answer as part of the solution, you just don't get awarded any points.
ASKER
The above Powershell line provided the correct filtering
All mailbox recipients have RecipientType = UserMailbox, but look at RecipientTypeDetails property, specially at RoomMailbox, EquipmentMailbox