Thursday, July 16, 2015

Hide external contacts from the shared address book

Some companies may use external contacts only so they can be added as members of distribution groups. In this scenario, they may want to hide external contacts from the shared address book. Here’s how:
Hide a single external contact
Set-MailContact <external contact> -HiddenFromAddressListsEnabled $true
For example, to hide Franz Kohl from the shared address book:
Set-MailContact “Franz Kohl” -HiddenFromAddressListsEnabled $true
Hide all external contacts
Run the following command to hide all external contacts from the shared address book:

Get-Contact -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'MailContact')} | Set-MailContact -HiddenFromAddressListsEnabled $true

No comments:

Post a Comment