Question:How To Change Autodiscover URL On Exchange 2007, 2010, 2013

Having the correct Autodiscover URL is very important on Exchange server 2007. 2010, 2013 since this is how Outlook is connecting to all the services.

During Exchange migrations many Engineers forget to change the URL after completing the migration.

To change the Autodiscover URL we need to use the Set-ClientAccessServer and the Set-WebServicesVirtualDirectory cmdlets all CAS servers in the organization.

Important: In total we need to run 3 cmdlet, before running the cmdlets make sure you have the correct URLs, and make sure you run them against all CAS servers.

 First cmdlet:

Set-ClientAccessServer -Identity EXCSERVER1 –AutoDiscoverServiceInternalUri

Second cmdlet:

this is for the internal URL:

set-WebServicesVirtualDirectory -Identity “EXCSERVER1\EWS (Default Web Site)” -InternalUrl -BasicAuthentication:$true

This is for the External URL:

Set-WebServicesVirtualDirectory -Identity “EXCSERVER1\EWS (Default Web Site)” –

ExternalUrl -BasicAuthentication:$true

To get things right run all command with the Internal URL (second cmdlet) and external for third cmdlet.