Forum Discussion
Custom GAL
- Feb 23, 2021
Please find below steps to create a customize GAL in your environment.
Create New Address Book Policy
Before Creating a policy, we have to create:
AddressList
GlobalAddressList
OfflineAddressBook
RoomListNew-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
NEW-ADDRESSLIST -NAME “IT” -RECIPIENTFILTER {((RECIPIENTTYPE -EQ ‘USERMAILBOX’))} -RECIPIENTCONTAINER IT
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT_confRoomList”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’
Regards,
MD
Please find below steps to create a customize GAL in your environment.
Create New Address Book Policy
Before Creating a policy, we have to create:
AddressList
GlobalAddressList
OfflineAddressBook
RoomList
New-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
NEW-ADDRESSLIST -NAME “IT” -RECIPIENTFILTER {((RECIPIENTTYPE -EQ ‘USERMAILBOX’))} -RECIPIENTCONTAINER IT
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT_confRoomList”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’
Regards,
MD
- tcboeiraFeb 09, 2023Brass ContributorHi, sorry for the delay...
When trying to use the command for "GlobalAddressList" nothing appears, even having loaded the "ExchangeOnlineManagement".
Could you tell me what might be missing or what I'm doing wrong?! - Fixxser2Feb 23, 2021Brass Contributor
I had to make a couple of changes and the below worked. Thanks so much MDadarkar
I used the GUI exchange admin to select multiple users and assign the IT Team address policy to them
Changed:
New-GlobalAddressList -Name “GAL IT” -IncludedRecipients MailboxUsers -ConditionalDepartment IT
New-AddressList -Name "IT" -IncludedRecipients MailboxUsers -ConditionalDepartment "IT"
NEW-OFFLINEADDRESSBOOK -NAME “IT OAB” -ADDRESSLISTS “IT”
New-AddressBookPolicy -Name “IT Team” -AddressLists “IT” -OfflineAddressBook “IT OAB” -GlobalAddressList “GAL IT” -RoomList “IT”
Set-Mailbox -Identity "Test1" -AddressBookPolicy ‘IT Team’Used GUI exchange admin to select multiple users and assign the IT Team address policy