【PowerShell】Microsoft 365管理 ~連絡先~

連絡先編集のメモ


記載がないAll Groupsグループ(チーム)一覧

 ((Alias -ne `$null) -and (RecipientTypeDetailsValue -eq 'GroupMailbox'))

記載がないOffline Global Address Listオフライン グローバル アドレス一覧

((Alias -ne `$null) -and (((((((((((ObjectClass -eq 'user') -or (ObjectClass -eq 'contact'))) -or (ObjectClass -eq'msExchSystemMailbox'))) -or (ObjectClass -eq 'msExchDynamicDistributionList'))) -or (ObjectClass -eq 'group')))-or (ObjectClass -eq 'publicFolder'))))

アレンジ

((Alias -ne `$null) -and (((((((ObjectCategory -like 'person') -and (ObjectClass -eq 'user') -and (-not(Database -ne `$null)) -and (-not(ServerLegacyDN -ne `$null)))) -or (((ObjectCategory -like 'person') -and (ObjectClass -eq 'user') -and (((Database -ne `$null) -or (ServerLegacyDN -ne `$null))))))) -and (-not((RecipientTypeDetailsValue -eq 'GroupMailbox') -or (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox') -or (ResourceType -eq 'Equipment') -or (RecipientTypeDetails -eq 'GuestMailUser')))))) #All Users社内アドレス一覧

((Alias -ne `$null) -and ((ObjectCategory -like 'person' -and ObjectClass -eq 'contact') -or (ObjectCategory -like 'person' -and ObjectClass -eq 'user' -and RecipientTypeDetails -eq 'GuestMailUser'))) #All Contacts社外アドレス一覧

((Alias -ne `$null) -and (ObjectCategory -like 'group') -and (RecipientTypeDetails -ne 'GroupMailbox')) #All Distribution Listsメーリングリスト一覧

((Alias -ne `$null) -and (ResourceType -eq 'Equipment')) #Public Folder備品一覧