Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Using the Autodiscover Sample Application

Exchange Server 2010

The Autodiscover sample application consists of an executable file that is located in the directory in which it was built. To use the Autodiscover sample application, make the current working directory in a command console the same as the directory that holds the Autodiscover sample application.

The Autodiscover sample is included in the Microsoft Exchange Server 2010 SP2 Web Services Software Development Kit (SDK).

Note Note

This sample application is intended for instructional purposes only and is not meant to be installed in a production environment.

The Autodiscover sample application can be used with either defined or default credentials.

To get Autodiscover information by using the default credentials

  1. In the console window, enter the name of the Autodiscover sample application.

  2. Add the name of the e-mail address that represents the account to access. This will be the first argument. This argument is required.

  3. Add true or false as the second argument to indicate whether to allow self-signed certificates. This argument is optional. If this argument is not included, a default value of false is used.

  4. Run the application.

    AutodiscoverSample.exe user@contoso.com
    

To get Autodiscover information by using defined credentials

  1. In the console window, enter the name of the Autodiscover sample application.

  2. Add the name of the e-mail address that represents the account to access. This is the first argument. This argument is required.

  3. Add true or false as the second argument to indicate whether to allow self-signed certificates.

  4. Add the user name of the account. This is the third argument.

  5. Add the password of the account. This is the fourth argument.

  6. Add the domain of the account. This is the fifth argument.

  7. Run the application.

    AutodiscoverSample.exe user@contoso.com false user password domain
    

The application will describe each step of the application as output to the console. If the Autodiscover request is a success, the application will display the data that is contained in each leaf node of the XML response.

Note Note

If the Autodiscover sample application is built by using debug mode, it will contain trace output to the console window.

Show:
© 2014 Microsoft. All rights reserved.