Skip to content

-ExcludeSharedMailboxContacts, uses HiddenFromAddressListsEnabled, not RemoteRecipientType #59

Open
@Snake98bm

Description

@Snake98bm

when I suggest a fix in [https://github.com//issues/58], i didn't follow the code and later discovered that it only look at the HiddenFromAddressListsEnabled property, that had nothing to-do with shared mailboxes.

On the file GET-Gal-Contacts.ps1 line 64 I suggest following change.

DirectoryList = $(Get-EXOMailbox -ResultSize unlimited -PropertySets Minimum,AddressList | Where-Object {($_.HiddenFromAddressListsEnabled -Match "False") -and ($_.RecipientTypeDetails -notmatch "SharedMailbox")} )

This will keep backward compatibility, but also filter all shared-mailboxes.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions