When try to enable the GlobalWebDistributionEnabled for the Shadow Copy using the below Command,
Get-OfflineAddressBook |Set-OfflineAddressBook -ShadowMailboxDistributionEnabled $true -GlobalWebDistributionEnabled $true
PS] C:\Windows\system32>Get-OfflineAddressBook |Set-OfflineAddressBook -ShadowMailboxDistributionEnabled $true -GlobalWebDistributionEnabled $true The offline address book “\Default Offline Address Book” has virtual directories specified. Run the following command to remove those virtual directories before attempting to set the GlobalWebDistributionEnabled parameter to $true: Set-OfflineAddressBook “\Default Offline Address Book” -VirtualDirectories $null + CategoryInfo : NotSpecified: (\Default Offline Address Book:ADObjectId) [Set-OfflineAddressBook], DataV alidationException + FullyQualifiedErrorId : [Server=MBX1,RequestId=1347e29e-e4b9-4b5c-929a-eecd8101e4a3,TimeStamp=23-12-2018 19:24:1 1] [FailureCategory=Cmdlet-DataValidationException] 6EE8CB25,Microsoft.Exchange.Management.SystemConfigurationTask s.SetOfflineAddressBook + PSComputerName : mbx1.windowstechpro.com
The offline address book “\Default Global Address USA” has virtual directories specified. Run the following command to remove those virtual directories before attempting to set the GlobalWebDistributionEnabled parameter to $true: Set-OfflineAddressBook “\Default Global Address USA” -VirtualDirectories $null + CategoryInfo : NotSpecified: (\Default Global Address USA:ADObjectId) [Set-OfflineAddressBook], DataVal idationException + FullyQualifiedErrorId : [Server=MBX1,RequestId=1347e29e-e4b9-4b5c-929a-eecd8101e4a3,TimeStamp=23-12-2018 19:24:1 1] [FailureCategory=Cmdlet-DataValidationException] 1F2B1A31,Microsoft.Exchange.Management.SystemConfigurationTask s.SetOfflineAddressBook + PSComputerName : mbx1.windowstechpro.com
To solve the issue: You need to run the command along with -VirtualDirectories $null
Set-OfflineAddressBook -Identity “Default Offline Address Book” -VirtualDirectories $null -GlobalWebDistributionEnabled $true
have you noticed onething here, I have used -VirtualDirectories $Null in the above command. what does it do?. By default there will be Front end / Back end of the OAB Servers will be there responsible for the OAB Requests. With -VirtualDirectories $Null,We are letting to handle download requests from all OAB virtual directories available in the organization. This makes smooth handling requests and Mandatory set for the GlobalWebDistribution
For more details on Offline Address Book (OAB) , Please refer the below Multi Part of articles