Creating a custom GAL
This should list all types having Custom attribute 1 in the Custom GAL . Which eventually supports Future versions New-GlobalAddresslist Organization A ConditionalCustomAttribute1 OrgA IncludedRecipients AllRecipients Ultimate Guide to Implement Address Book Policies in Exchange 2010 SP2 http://gallery.technet.microsoft.com/office/Ultimate-Guide-to-92c1ed04Satheshwaran Manoharan | Exchange 2003/2007/2010/2013 | Blog:http://www.careexchange.in | Please mark it as an answer if it really helps you ------------- I do not represent the organisation I work for, all the opinions expressed here are my own. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
August 31st, 2012 12:42am

New-GlobalAddressList Name "Custom Global Address List" -RecipientFilter {(CustomAttribute1 -like 'Some*') -and ((RecipientType -eq 'UserMailbox') -or (RecipientType -eq "MailUniversalDistributionGroup") -or (RecipientType -eq "DynamicDistributionGroup") -or (RecipientType -eq 'MailContact') -or (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox'))} Even you can use like this. Its absolutely your choice. It can be easily customized even if you get a new type of mailbox . you can add in 2020 lolSatheshwaran Manoharan | Exchange 2003/2007/2010/2013 | Blog:http://www.careexchange.in | Please mark it as an answer if it really helps you ------------- I do not represent the organisation I work for, all the opinions expressed here are my own. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 12:43am

Thanks, but I can't used pre-canned filters because the CustomAttribute1 criterion needs to include a wildcard. I HAVE to use -RecipientFilter. Followup from my [Edit] last night: Exchange won't let me search on -RecipientTypeDetails -ne $null, nor on -RecipientTypeDetails -ne 'SomeMailboxTypeThatDoesn'tExist', so that's not a solution.
August 31st, 2012 12:50am

New-GlobalAddressList Name "Custom Global Address List" -RecipientFilter {(CustomAttribute1 -like 'Some*') -and ((RecipientType -eq 'UserMailbox') -or (RecipientType -eq "MailUniversalDistributionGroup") -or (RecipientType -eq "DynamicDistributionGroup") -or (RecipientType -eq 'MailContact') -or (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox'))} Even you can use like this. Its absolutely your choice. It can be easily customized even if you get a new type of mailbox . you can add in 2020 lolSatheshwaran Manoharan | Exchange 2003/2007/2010/2013 | Blog:http://www.careexchange.in | Please mark it as an answer if it really helps you ------------- I do not represent the organisation I work for, all the opinions expressed here are my own. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 12:57am

EX2010 SP2 I need to create a custom GAL that includes a wildcard filter for CustomAttribute1. So, something like-- -RecipientFilter {(CustomAttribute1 -like "SomeText*" -and RecipientTypeDetails -eq ?????? )} The '?????' is what I need help with. Being a GAL, it needs to include all recipient types. And to avoid being a maintenance problem, it needs to include not just recipient types in EX2010 SP2, but those in future versions. -IncludedRecipients has an AllRecipients value that accomplishes this. RecipientTypeDetails doesn't have a value like AllRecipients, and doesn't accept wildcards. Is there some way to construct a RecipientFilter to include all recipients in a custom GAL that uses wildcards in another property without explicitly specifying -RecipientTypeDetails -eq UserMailbox -or -RecipientTypeDetails -eq MailUser -or -RecipientTypeDetails -eq ConferenceRoomMailbox -or [...] [Edit] Just hit me: -RecipientTypeDetails -ne $null should work...right? TIA
August 31st, 2012 1:12am

Hi there, It is best to post this question in Exchagne development forum. Your understanding would be appreciated. Fiona Liao TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 2:42am

Sounds as though the correct answer to the question I posted is "No", as I had feared: That while one can do many things with a custom filter than canned filters, including returning all mailbox types, now and forever, is not one of them.
August 31st, 2012 12:37pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics