Change the Autodiscover/EWS url in Exchange 2010

If you are installing a new Exchange 2010 Server or want to update the existing servers Autodiscover and EWS URL’s 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 URL’s we need to run the following 2 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 prompt.

Hope it helps.

Views All Time
Views All Time
Views Today
Views Today
Advertisements

One comment

Leave a Reply

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