Filtering default GAL

I have some contacts appearing in my default GAL which I dont want. Each contact has the word "exclude" under the company attribute. Then created a custom address list to include these contacts and that works great. I dont want to exclude all contacts.

I need help with powershell script to edit the default GAL to exclude the contacts that have "exclude" under the company attribute.

Please help!!!

June 26th, 2015 8:31am

set-globaladdresslist -identity "Default Global Address List" -recipientfilter "company -ne 'exclude'"
Free Windows Admin Tool Kit Click here and download it now
June 26th, 2015 12:44pm

Hi Darren,

You can create a new address list in exchange server 2013

Go to ECP

click Organization -> click  Address Lists 

Here you can create new global address list ,add rules,add attributes and enable options according to your wish.

Hope this info helps.

Regards,

Joby

June 26th, 2015 4:49pm

Hi Darren,

You can create a new address list in exchange server 2013

Go to ECP

click Organization -> click  Address Lists 

Here you can create new global address list ,add rules,add attributes and enable options according to your wish.

Hope this info helps.

Regards,

Joby

  • Marked as answer by darrencon 18 hours 40 minutes ago
Free Windows Admin Tool Kit Click here and download it now
June 26th, 2015 8:47pm

Hi Darren,

You can create a new address list in exchange server 2013

Go to ECP

click Organization -> click  Address Lists 

Here you can create new global address list ,add rules,add attributes and enable options according to your wish.

Hope this info helps.

Regards,

Joby

  • Marked as answer by darrencon Monday, June 29, 2015 12:44 PM
June 26th, 2015 8:47pm

Hi,

By default, we cannot modify the recipient filter of default GAL. To temporarily modify the default GAL, please refer to the following steps:

1. Open the ADSI Edit, and expand each of the following items:

Configuration Partition | CN=Configuration | CN=Services | CN=Microsoft Exchange | CN=<Organization Name> | CN=All Global Address List | CN= Default Global Address List

2. Right click Default Global Address List and set the msExchRecipientFilterFlags value to 0.

3. Run the command:

set-globaladdresslist -identity "Default Global Address List" -recipientfilter {((Alias -ne $null) -and (Company -ne "exclude") -and ((ObjectClass -eq 'user') -or (ObjectClass -eq 'contact') -or (ObjectClass -eq 'msExchSystemMailbox') -or (ObjectClass -eq 'msExchDynamicDistributionList') -or (ObjectClass -eq 'group') -or (ObjectClass -eq 'publicFolder')))}

4. After that, change the attribute msExchRecipientFilterFlags value to 3.

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
June 28th, 2015 11:03pm

Thanks I have created a new list, which works fine. Any way to hide the Default global Address List?

Regards

Darren

June 29th, 2015 8:46am

Hi,

Address Book Policy should be what you need.

https://technet.microsoft.com/en-us/library/hh529948(v=exchg.150).aspx

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
June 30th, 2015 9:49pm

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

Other recent topics Other recent topics