Using the Autodiscover Sample Application
Topic Last Modified: 2007-04-02
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.
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
In the console window, enter the name of the Autodiscover sample application.
Add the name of the e-mail address that represents the account to access. This will be the first argument. This argument is required.
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.
Run the application.
AutodiscoverSample.exe user@contoso.com
To get Autodiscover information by using defined credentials
In the console window, enter the name of the Autodiscover sample application.
Add the name of the e-mail address that represents the account to access. This is the first argument. This argument is required.
Add true or false as the second argument to indicate whether to allow self-signed certificates.
Add the user name of the account. This is the third argument.
Add the password of the account. This is the fourth argument.
Add the domain of the account. This is the fifth argument.
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
If the Autodiscover sample application is built by using debug mode, it will contain trace output to the console window.