How to Configure the Autodiscover Service to Use Site Affinity

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.


Applies to: Exchange Server 2007, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

Topic Last Modified: 2007-05-30

This topic explains how to use the Exchange Management Shell to configure site affinity for the Autodiscover service on the computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed. You can configure the Autodiscover service to use site affinity to specify Active Directory sites that are preferred for clients to connect to a particular instance of the Autodiscover service. For more information about how to use site affinity with the Autodiscover service, see Deployment Considerations for the Autodiscover Service. Configuring the Autodiscover service to use site affinity is achieved by using the Set-ClientAccessServer cmdlet.

To perform this procedure, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

  • Run the following command:

    Set-ClientAccessServer -Identity "ServerName" -AutodiscoverServiceInternalURI "https://internalsitename/autodiscover/autodiscover.xml" AutodiscoverSiteScope "SiteName"

For more information about syntax and parameters, see Set-ClientAccessServer.