Feedback by UserVoice

eakarat thailand

My feedback

  1. 441 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    26 comments  ·  Office 365 Admin » Exchange Admin  ·  Flag idea as inappropriate…  ·  Admin →
    eakarat thailand commented  · 

    Set-TransportConfig -AddressBookPolicyRoutingEnabled $true

    step 1-6
    1.
    New-GlobalAddressList -Name "MBK-GAL" -RecipientFilter {(CustomAttribute1 -eq "SNGTH")}

    2.
    New-AddressList -Name "MBK-All" -RecipientFilter{((((((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUniversalDistributionGroup'))) -or (RecipientType -eq 'DynamicDistributionGroup'))) -and (CustomAttribute1 -eq 'SNGTH'))}

    3.
    New-AddressList -Name "MBK-Rooms" -RecipientFilter {((((((Alias -ne $null) -and (CustomAttribute1 -eq 'SNGTH'))) -and (RecipientDisplayType -eq 'ConferenceRoomMailbox'))) -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox'))}

    4.
    New-AddressList -Name "MBK-Other" -RecipientFilter {(((((((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUniversalDistributionGroup'))) -or (RecipientType -eq 'DynamicDistributionGroup'))) -or (RecipientTypeDetails -eq 'MailContact')) -or (CustomAttribute1 -ne 'SNGTH'))}

    5.
    New-OfflineAddressBook -Name "MBK-OAB" -AddressLists "MBK-GAL"

    6.
    New-AddressBookPolicy -Name "MBK-ABP" -RoomList "\MBK-Rooms" -AddressLists "\MBK-Other","\MBK-All" -OfflineAddressBook "\MBK-OAB" -GlobalAddressList "\MBK-GAL"

    Get-Mailbox | Where {$_.PrimarySmtpAddress -like "*sngth.com*"} | Set-Mailbox –CustomAttribute1 "SNGTH"

    Get-DistributionGroup | Where {$_.PrimarySmtpAddress -like "*sngth.com*"} | Set-Distributiongroup –CustomAttribute1 "SNGTH

    Get-Mailbox -RecipientTypeDetails RoomMailbox | Where {$_.PrimarySmtpAddress -like "*sngth.com*"} | Set-Mailbox –CustomAttribute1 "SNGTH"

    Get-Mailbox -RecipientTypeDetails Equipment | Where {$_.PrimarySmtpAddress -like "*sngth.com*"} | Set-Mailbox –CustomAttribute1 "SNGTH"

Feedback and Knowledge Base