Exchange 2010: Change the Autodiscover/EWS URL

If you are installing a new Exchange 2010 Server or want to update the existing servers’ Autodiscover and EWS URLs, then follow the commands below.

EWS (Exchange WEB Services)

To check what the URL is currently, run the following command from the Exchange Management Shell (EMS):

Get-WebServicesVirtualDirectory |fl identity,internalurl,externalurl

This is the output of running the command:

Identity : vr-eb-mes-mb01\EWS (Default Web Site)

InternalUrl: https://vr-eb-mes-mb01.test.com/EWS/Exchange.asmx

ExternalUrl: None

To update the URLs we need to run the following two commands:

Set-WebServicesVirtualDirectory -Identity “vr-eb-mes-mb01\EWS (Default Web Site)” -InternalUrl https://mail.test.com/EWS/Exchange.asmx -BasicAuthentication:$true

Set-WebServicesVirtualDirectory -Identity “vr-eb-mes-mb01\EWS (Default Web Site)” -ExternalUrl https://mail.test.com/EWS/Exchange.asmx -BasicAuthentication:$true

Autodiscover

To check what the URL is currently, run the following command from the Exchange Management Shell (EMS):

Get-ClientAccessServer |fl identity,autodiscoverserviceinternaluri

This is the output of running the command:

Identity : vr-eb-mes-mb01

AutoDiscoverServiceInternalUri : https://vr-eb-mes-mb01.test.com/Autodiscover/Autodiscover.xml

To update the URL we need to run the following command:

Set-ClientAccessServer -Identity vr-eb-mes-mb01 –AutoDiscoverServiceInternalUri https://mail.test.com/Autodiscover/Autodiscover.xml

After that do an IISRESET from an elevated command prompt.

Views All Time
Views All Time
Views Today
Views Today
Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *