fernie54
asked on
How do I exclude hidden mailboxes from a Dynamic Distribution Group?
I can create new dynamic distribution groups using powershell and the Exchange Console, but I cannot figure out how to filter the hidden mailboxes so they are not added. Does anyone have any experience with this? The script I am using is below:
New-DynamicDistributionGro up -Name "test5" -OrganizationalUnit 'mydomain/Distribution Groups' -RecipientContainer mydomain -RecipientFilter { recipienttype -eq 'usermailbox' -and Company -eq 'company name.' -and CustomAttribute2 -eq 'domain.com' }
New-DynamicDistributionGro
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome !
I never did it before and glad to know it worked something to add to my knowledge base for sure
I never did it before and glad to know it worked something to add to my knowledge base for sure
ASKER