Symptoms
Configure OAB Web Distribution settings for OAB service #XXX
task fails with the following output:
An OAB must be associated with the organization in order to configure WEB distribution for OAB
Cause
Offline Address Book of this organization does not exist:
[PS] C:\Windows\system32>Get-OfflineAddressBook -Identity "S00XXXXXXX OAL"
The operation couldn't be performed because object 'S00XXXXXXX OAL' couldn't be found on 'EXSERVER01.exchange.local'.
Resolution
Recreate OAB for this organization:
new-OfflineAddressBook -Name 'S00XXXXXXX OAL' -Server 'EXSERVER01' -AddressLists '\S00XXXXXXX AL' -PublicFolderDistributionEnabled $true
Recreate OAB's OWKO GUID using the following articles:
#10014 How to get OWKO of Active Directory object
#10015 How to edit OWKO of AD object: add/remove data by MPS or WPE call
- Restart the task.
Note: it may be also required to recreate AL and GAL using the commands like:
New-AddressList -Name 'S00XXXXXXX AL' -IncludedRecipients 'AllRecipients' -ConditionalCustomAttributeXX 'S00XXXXXXX' -Container '\' -DisplayName 'S00XXXXXXX AL'
New-GlobalAddressList -Name "S00XXXXXXX GAL" -RecipientFilter {CustomAttributeXX -eq 'S00XXXXXXX' -and Alias -ne $null}
In this case AL's and GAL's OWKO GUIDs must be created as well.