Get-OwaVirtualDirectory | Remove-OwaVirtualDirectory
New-OwaVirtualDirectory -InternalUrl “https://mail.contoso.local/owa” -ExternalUrl “https://mail.contoso.local/owa”
Get-EcpVirtualDirectory | Remove-EcpVirtualDirectory
New-EcpVirtualDirectory -InternalUrl “https://mail.contoso.local/ecp” -ExternalUrl “https://mail.contoso.local/ecp”
iisreset /force