During a recent update to Exchange 2016 CU9, I encountered the following error whilst trying to recreate one of the secondary OWA sites that I have running. The command being executed was:
1 |
New-OwaVirtualDirectory -Server $ServerName -WebsiteName "EAC_Secondary" | Out-Null |
The error I was getting:
1 2 3 4 5 |
<span style="color: #ff0000;">An error occurred while creating the IIS virtual directory 'IIS://exch04.domain.local/W3SVC/3/ROOT/owa' on 'exch04'. + CategoryInfo : InvalidOperation: (exch04\owa (EAC_Secondary):ADObjectId) [New-OwaVirtualDirectory], InvalidOperationException + FullyQualifiedErrorId : [Server=exch04,RequestId=8d989c2d-4c79-4c5c-932d-5cc97804b721,TimeStamp=08/05/2018 14:09:13] [FailureCategory=Cmdlet-InvalidOperationException] 628F3B52,Microsoft.Exchange.Management.SystemConfigurationTasks.NewOwaVirtualDirectory + PSComputerName : exch04.domain.local </span> |
The usual suspect is that the object was not cleanly removed from the domain, so remove
Continue reading New-OwaVirtualDirectory – An error occurred while creating the IIS virtual directory