Answered by:
exclude distribution groups from GAL

Question
-
We are running Exchange 2007 I need to exclude distribution groups in our sub domain from the GAL without hiding them. I have a Recipient Filter that updates that successfully only it fails to exclude the groups.
{(Alias -ne $null -and (RecipientContainer -ne 'OU=SDG,DC=subdomain,DC=ad,DC=domain,DC=tld' -and (ObjectClass -eq 'user' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group')))}
Tuesday, March 10, 2015 12:48 AM
Answers
-
The -notlike and -like made no difference. Nevertheless, we went a deferent way using extension attributes instead.
- Marked as answer by Carl M5646813 Wednesday, April 15, 2015 10:07 PM
Thursday, March 19, 2015 6:44 PM
All replies
-
We are running Exchange 2007 I need to exclude distribution groups in our sub domain from the GAL without hiding them. I have a Recipient Filter that updates that successfully only it fails to exclude the groups.
{(Alias -ne $null -and (RecipientContainer -ne 'OU=SDG,DC=subdomain,DC=ad,DC=domain,DC=tld' -and (ObjectClass -eq 'user' -or ObjectClass -eq 'msExchSystemMailbox' -or ObjectClass -eq 'msExchDynamicDistributionList' -or ObjectClass -eq 'group')))}
- Merged by Winnie LiangMicrosoft contingent staff, Moderator Tuesday, March 10, 2015 8:13 AM duplicate
Monday, March 9, 2015 9:33 PM -
You have posted in an Exchange 2013 forum. The Exchange previous versions forums are here: http://social.technet.microsoft.com/Forums/en-US/category/exchangeserverlegacy
Well, of course nobody can tell you whether your query is valid since we don't have access to your AD. I can only offer you the general advice to try -notlike and -like instead of -ne and -eq.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
- Edited by Ed CrowleyMVP Monday, March 9, 2015 11:41 PM
Monday, March 9, 2015 11:40 PM -
Well, of course nobody can tell you whether your query is valid since we don't have access to your AD. I can only offer you the general advice to try -notlike and -like instead of -ne and -eq.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Tuesday, March 10, 2015 2:53 AM -
The -notlike and -like made no difference. Nevertheless, we went a deferent way using extension attributes instead.
- Marked as answer by Carl M5646813 Wednesday, April 15, 2015 10:07 PM
Thursday, March 19, 2015 6:44 PM