Monday, July 24, 2017

Set-ActivesyncVirtualDirectory -Identity "CAS_Server_Name\Microsoft-Server-ActiveSync (Default Web Site)" -ExternalURL https://mail.contoso.com/Microsoft-Server-Activesync -BasicAuthentication $True

Set-OwaVirtualDirectory -Identity "CAS_Server_Name\OWA (Default Web Site)" -ExternalURL Https://mail.contoso.com/OWA -FormsAuthentication $True -BasicAuthentication $True

Set-OABVirtualDirectory -Identity "CAS_Server_name\oab (Default Web Site)" -ExternalUrl https://mail.contoso.com/oab

Set-WebServicesVirtualDirectory -Identity "CAS_Server_Name\EWS (Default Web Site)" -ExternalUrl https://mail.contoso.com/ews/exchange.asmx

Enable-OutlookAnywhere -Server CAS01 -ExternalHostname "mail.contoso.com" -ExternalAuthenticationMethod "Basic" -SSLOffloading:$False