× SSL247 joins forces with Sectigo CA - Find Out More...
Our accreditations and awards:
0 items Total $0

This tutorial will show you how to reconfigure your server to migrate from an internal name (such as server.local to a fully qualified domain name (FQDN) such as mail.example.com

to ensure that internal Autodiscover continues to work, you must create an internal DNS zone for your domain name (for example, autodiscover.example.com) and a MX record that points to your server's internal IP address.

The code samples below include the following variables:

  • Replace mail.example.com with your FQDN
  • Replace Your_Server_Name with the actual name of your server

Please note: these instructions do not apply to Windows Server® 2012 or Microsoft Small Business Financials (SBF) Server.


1. Launch the Exchange Management Shell

2. Change the Autodiscover URL by typing the following command:

Set-ClientAccessServer -Identity Your_Server_Name -AutodiscoverServiceInternalUri https://mail.example.com/autodiscover/autodiscover.xml

3. Change the InternalUrl attribute of the EWS by typing the following command:

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

4. Change the InternalUrl attribute for Web-based Offline Address Book distribution by typing the following command:

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

5.Only if you use the Unified Message service in Exchange Server 2007: change the InternalUrl attribute of the UM Web service by typing the following command:

Set-UMVirtualDirectory -Identity “Your_Server_Name\unifiedmessaging (Default Web Site)” -InternalUrl https://mail.example.com/unifiedmessaging/service.asmx

6. To recycle the application pools, open IIS Manager.

7. Expand Local computer, and then expand Application Pools.

Right-click MSExchangeAutodiscoverAppPool, and then click Recycle.