• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » Create and Assign a new Address Book Policy in Exchange 2019

Create and Assign a new Address Book Policy in Exchange 2019

June 4, 2020 - by Zsolt Agoston - last edited on June 7, 2020

In Exchange there is a single Global Address List that contains all the mail objects in the organization. Always Hot Café has three locations in the following cities: New York and Austin.

Create and Assign a new Address Book Policy in Exchange 2019

The management wants the workers at those locations to see only each other in the Global Address List. Furthermore, they want a separate list that contains all the New York team members only.

To achieve their goals, we need to create a new Global Address Policy, and assign that policy to the users. Remember, there can be many policies configured, and each user can have the desired policy assigned.

Note: each user can have only one policy assigned!

Create GAL that includes only NY, LA and Austin members

First, we start off with the new Global Address Book. It is called "Only NY-LA-Austin GAL" and contains only user mailboxes that have their office properties set to either NY, LA or Austin.

New-GlobalAddressList -Name "Only NY-LA-Austin GAL" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and ((Office -eq 'New York') -or (Office -eq 'Los Angeles') -or (Office -eq 'Austin'))}
Update-GlobalAddressList "Only NY-LA-Austin GAL"

Create corresponding OAB for the new GAL

Offline Address Books allow users in cached Exchange mode to store address list information while they are disconnected from the Exchange severs. We include the new GAL in this offline address list, as this list will be assigned to the Café workers.

New-OfflineAddressBook -Name "Only NY-LA-Austin OAB" -AddressLists "Only NY-LA-Austin GAL"
Update-OfflineAddressBook "Only NY-LA-Austin OAB"

Address List

Next, we create a separate list that will contain all users who's office is New York.

New-AddressList -Name "New York Team" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (Office -eq 'New York'))}
Update-AddressList "New York Team"
Create and Assign a new Address Book Policy in Exchange 2019

Create a new Address Policy for all New York, Los Angeles and Austin users

We got to the core step, creating a new policy that contians the GAL, OAB and address lists the users will see who get the policy assigned to.

New-AddressBookPolicy -Name "Only NY-LA-Austin ABP" -GlobalAddressList "Only NY-LA-Austin GAL" -OfflineAddressBook "Only NY-LA-Austin OAB" -AddressLists "All Users" -RoomList "All Rooms"

Assign the new policy to users

Lastly, assign the policy to the users.

# Assign the new ABP to user Alice
Set-Mailbox alice -AddressBookPolicy "Only NY-LA-Austin ABP"

# Assign the new ABP to all New York workers
Get-Mailbox -Filter {Office -like "New York"} -ResultSize unlimited | Set-Mailbox -AddressBookPolicy "Only NY-LA-Austin ABP"

Check out how Alice sees the Global Address List now. She cannot tell that her GAL is a custom one - called "Only NY-LA-Austin GAL" -  but as shown, she only has New York, LA and Austin based users in her main list, just as it is expected.

Create and Assign a new Address Book Policy in Exchange 2019

View Address List Recipients using the shell

Here's an easy way to tell which users are included in an address list, the same command can be used to query members of a global address list too.

$AL = Get-AddressList -Identity "New York Team"
Get-Recipient -ResultSize unlimited -RecipientPreviewFilter $AL.RecipientFilter

Reader Interactions

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • Create GAL that includes only NY, LA and Austin members
  • Create corresponding OAB for the new GAL
  • Address List
  • Create a new Address Policy for all New York, Los Angeles and Austin users
  • Assign the new policy to users
  • View Address List Recipients using the shell

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}