How to Configure Exchange Services for the Autodiscover Service

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: 2009-01-15

This topic explains how to configure Microsoft Exchange services, such as the Availability service, for the Autodiscover service on a Microsoft Exchange Server 2007 computer that has the Client Access server role installed.

When you enable Outlook Anywhere, you must also configure external access to Microsoft Exchange services for the Autodiscover service. This includes the URLs for the Availability service, Exchange Web Services, Unified Messaging (UM), and the offline address book.

If you do not configure the external URL values, the Autodiscover service information provided to the Microsoft Office Outlook 2007 client may be incorrect for clients that are connecting from outside your network. They may be able to connect to their Microsoft Exchange mailbox. However, they will be unable to use Exchange features such as Out of Office functionality, the Availability service, Unified Messaging, or offline address book downloads.

Generally, the internal URL is configured by Microsoft Exchange Setup. However, the external URLs must be configured by using the virtual directory cmdlet for each component.

To perform the following procedures, 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 2007, see Permission Considerations.

  • Run the following command:

    Enable-OutlookAnywhere -Server CAS01 -ExternalHostname "" -DefaultAuthenticationMethod "Basic" -SSLOffloading:$False

For more information about syntax and parameters, see Enable-OutlookAnywhere.

  • Run the following command:

    Set-OABVirtualDirectory -identity "CAS01\OAB (Default Web Site)" -externalurl -RequireSSL:$true 

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

  • Run the following command:

    Set-UMVirtualDirectory -identity "CAS01\UnifiedMessaging (Default Web Site)" -externalurl  -BasicAuthentication:$True

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

  • Run the following command:

    Set-WebServicesVirtualDirectory -identity "CAS01\EWS (Default Web Site)" -externalurl -BasicAuthentication:$True

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