?
Solved

Adding dist groups to GAL filter?

Posted on 2012-09-17
5
Medium Priority
?
406 Views
Last Modified: 2012-09-21
Built a new GAL last week , just realized off the results shown there are no distribution groups.  Currently my recipientfilter is
((ServerName -eq 'host') -or (ServerName -eq 'host2'))

Open in new window


What can I add to also include dist groups?
0
Comment
Question by:Ben Hart
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Raj-GT
ID: 38406007
((ServerName -eq 'host') -or (ServerName -eq 'host2') -or (objectClass -eq 'group') -or (objectClass -eq 'msExchDynamicDistributionList')) should do the trick.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 38421884
So sorry.. I thought I clicked submit yesterday..

So after changing the global address list with the above code, I saw no change two days later.  Noticing your suggest mentioned dynamic dist groups.. which w do not use.  I tried changing it to 'msExchDistributionList' yesterday so I'm still waiting to see results.
0
 
LVL 15

Expert Comment

by:Raj-GT
ID: 38421967
Did you run Update-GlobalAddressList "Listname"
0
 
LVL 15

Accepted Solution

by:
Raj-GT earned 2000 total points
ID: 38422210
Actually the syntax should simply be (((ServerName -eq 'host') -or (ServerName -eq 'host2')) -and (objectClass -eq 'group'))
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 38422276
DOH! Forgot about the update command.  And yeah changing it to just 'groups' then running an update worked like a champ.. Thanks so much!
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

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

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
In this video we show how to create an Accepted Domain 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 >> Ac…
In this video we show how to create a mailbox database 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 Servers >> Data…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

839 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