IT Knowledge Base

Technical Repository

HowTo: Automate Exchange 2010/2013 CAS Server Setup – Requires Split DNS

Configuration Commands

We want to create the array even if we only have one CAS server. This way, in the future if we want to add additional hosts we already have the array created and adding additional hosts should be ‘plug and play’. You can create a load balanced array of Client Access server computers. The New-ClientAccessArray cmdlet creates an object that represents this load balanced array. You can then manage the load balanced array as a single object. We are assuming that your internal DNS and external DNS servers have the same A record names but are configured to point to different IP’s. i.e. internal DNS record is pointing to the internal IP of your CAS array and the external DNS record is pointing to the external public IP.

Open the Exchange Management Shell. Copy and paste the following commands after you update them with your FQDN.

New-ClientAccessArray -FQDN CASARRAY01.MYDOMAIN.COM -Site Default-First-Site-Name -Name "CASARRAY01"
Get-MailboxDatabase | Set-MailboxDatabase -RpcClientAccessServer CASARRAY01.MYDOMAIN.COM

Verification Commands

Get-MailboxDatabase | fl RpcClientAccessServer
Get-RpcClientAccess | fl
Get-RpcClientAccess | fl EncryptionRequired

Configuration Commands

Theses commands will setup and configure Outlook Anywhere on the CAS array servers.

Enable-OutlookAnywhere -Server 'CASARRAYSERVER01' -ExternalHostname 'MAIL.MYDOMAIN.COM' -DefaultAuthenticationMethod 'Basic' -SSLOffloading $false
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://MAIL.MYDOMAIN.COM/autodiscover/autodiscover.xml
Get-OwaVirtualDirectory | Set-OWAVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/OWA
Get-OwaVirtualDirectory | Set-OWAVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/OWA
Get-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/autodiscover/autodiscover.xml
Get-AutodiscoverVirtualDirectory | Set-AutodiscoverVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/autodiscover/autodiscover.xml
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/ECP
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/ECP
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/ews/exchange.asmx
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/ews/exchange.asmx
Get-OABVirtualDirectory | Set-OABVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/OAB
Get-OABVirtualDirectory | Set-OABVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/OAB
Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -InternalUrl https://MAIL.MYDOMAIN.COM/Microsoft-Server-ActiveSync
Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -ExternalUrl https://MAIL.MYDOMAIN.COM/Microsoft-Server-ActiveSync

Update the Outlook Proxy Setting

get-outlookprovider | Set-OutlookProvider -Server CASSERVER -CertPrincipalName msstd:MAIL.MYDOMAIN.COM



Leave a Reply