Friday, March 8, 2013

Exchange 2007/2010 Autodiscover Configuration Without Bludgeoning Yourself Stupid

I'm going through some of my old collections of notes from blogs gone by. I'm going to start posting them here for anyone who should find such things useful.

First Up:

Configuring Exchange 2007/2010 Autodiscover Without Bludgeoning Yourself Stupid.

  1. Start the Exchange Management Shell.

  2. Modify the Autodiscover URL in the Service Connection Point. The Service Connection Point is stored in the Active Directory directory service. To modify this URL, type the following command, and then press ENTER:

  3. Set-ClientAccessServer -Identity CAS_Server_Name -AutodiscoverServiceInternalUri https://mail.contoso.com/autodiscover/autodiscover.xml

  4. Modify the InternalUrl attribute of the EWS. To do this, type the following command, and then press ENTER:

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

  5. Modify the InternalUrl attribute for Web-based Offline Address Book distribution. To do this, type the following command, and then press ENTER:

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

  6. Modify the InternalUrl attribute of the UM Web service. To do this, type the following command, and then press ENTER:

    Set-UMVirtualDirectory -Identity "CAS_Server_Name\unifiedmessaging (Default Web Site)" -InternalUrl https://mail.contoso.com/unifiedmessaging/service.asmx

  7. Add to DNS the SRV record ‘_autodiscover’ protocol _tcp port 443 for mail.contoso.com

  8. [Only needed if you screwed up your SAN cert and need to redirect over port 80] Add a new virtual directory in IIS. Give it the host header name 'autodiscover.contoso.com'. Create a subdirectory 'autodiscover' and inside of that create a blank text file called 'autodiscover.xml'. Set this file as an IIS redirect to 'https://mail.contoso.com/autodiscover/autodiscover.xml'

  9. Add a CNAME to DNS for 'autodiscover.contoso.com' to 'mail.contoso.com'

  10. Go get a cert with 'mail.contoso.com' as the CN and 'autodiscover.contoso.com' as the SAN.