windows:servers:exchange:address_books

Differences

This shows you the differences between two versions of the page.


windows:servers:exchange:address_books [2019/10/31 09:14] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Address books and address lists in exchange ======
 +<code powershell>
 +New-GlobalAddressList -Name Example_Global -ConditionalCompany @{Add="Example ltd"} -IncludedRecipients AllRecipients
 +Update-GlobalAddressList Example_Global
  
 +New-OfflineAddressBook -Name Example_Offline -AddressLists Example_Global
 +Update-OfflineAddressBook Example_Offline
 +
 +New-AddressList -Name Example_People -RecipientFilter "((Company -eq 'Example ltd') -and (RecipientType -eq 'UserMailbox'))"
 +New-AddressList -Name Example_Rooms -RecipientFilter "((Company -eq 'Example ltd') -and (((RecipientType -eq 'UserMailbox') -and (ResourceMetaData -like 'ResourceType:*') -and (ResourceSearchProperties -ne $null))))"
 +Update-AddressList Example*
 +
 +New-AddressBookPolicy Example -GlobalAddressList Example_Global -RoomList Example_Rooms -AddressLists Example_People -OfflineAddressBook Example_Offline
 +
 +Set-MailBox -Identity "user" -AddressBookPolicy Example
 +</code>
 +Before deleting the policy, check who uses the policy
 +<code powershell>Get-Mailbox  | select Name,AddressBookPolicy</code>