In this Article, We will cover how does Autodiscover works in Exchange to configure outlook profile for users without manual intermission of the user or administrator. Let’s Begin!!
What is Autodiscover?
Autodiscover is the one of the exchange feature which is introduced with exchange Server 2007. It helps users to configure the user’s Mailbox automatically.
How does It Works?
Now we will see what is going on behind the scenes of the Autodiscover. During the installation of Exchange Server, Each Exchange Server creates it’s own SCP(Service connection point) which you can see in Active Directory Sites and Services.
SCP contains the Exchange server Autodiscover information. It will help outlook clients to locate Autodiscover information to configure user mailbox profile.
In Exchange IIS, You can see autodiscover virtual directory which is available for the auto discover settings.
in Exchange PowerShell, Get-Autodiscovervirtualdirectory
When outlook client opens, it will send LDAP request to the Active directory.
1. Outlook Client sends LDAP query to Active directory to look for SCP Points.
2. Active Directory will send the SCPÂ Connection points to the Outlook Client it will be normal XML Response from active directory.
3. outlook will sorts the connection points which received from the previous request and sends HTTPS DNS Request to Autodiscover URL HTTPS://autodiscover.windowstechpro.com/Autodiscover/autodiscover.xml. If it fails, it will send http Request to HTTP://autodiscover.windowstechpro.com/Autodiscover/autodiscover.xml. If that also Fails, it will send SRV Request to active directory. even it fails, Outlook will fail completely and thrown an error.
4. Auto discover will returns with service connection settings to the client which will be XML File with all the connection settings.
5. Outlook client will take all these configuration information to contact exchange server. Exchange server will check for the appropriate mailbox information for the configuration information provided by the outlook client.
Now we will see how it is happening for the  outlook which got configured earlier in the article. fiddler is the great tool to trace http traffic. it helps to troubleshoot or trace the autodiscover issue.
1. Outlook Client sends first LDAP Query to domain. It failed
2. it sends Autodiscover request to Active directory and it checks the Certificate of the Autodiscover
You can there is no Cookies send to the browser.
3. Auto Discover sends the outlook settings and configuration information to outlook client.
 It contains the authentication information and also you can see the session cookie passed to the client.
it sends all the EXCH,WEB and EXPR information to the Outlook client.
4. Outlook takes the configuration information which provided by autodiscover and contacts the Exchange Environment and configures the Mailbox and also downloads the Outlook Offline Address book(OOB) and EWS settings post the successfully outlook profile configuration.
That is how autodiscover works. We will see the troubleshooting when autodiscover fails in the upcoming articles.
Nice article RK!!!GR8.
Article copied from technet.
oh My Dear.. that is also mine copied published in multiple places to make this available to everyone. Thanks for noticing it..
That’s right. Your domain name has been mentioned in the technet article. By the way its social technet website.
Hi RK, can you share the path where we can see the SCP created in active directory ? if its big infra SCP will create all DC server ?
Open AD Sites and services and select View Service Nodes to view the Microsoft Exchange Service points
Best explained, very easy to understand, plus learned how to use fiddler. Great article.
Just what I needed — a diagram and everything! Thank you so much for your careful explanation “for dummies” like me, a tech writer tasked with writing something technical that involves Autodiscover but with no guidance about said service. You nailed it.
very informative article 🙂
There isn’t such objects in Active Directory Sites and Services!
You need to select Show Service Node under View..
Hi Govindan,
i have one query, while installing exchange given domain details are “mail.conteso.com” and local domain is (AD Installed) test.com it was working fine after some time i have change my email -id to in.busy.eu, what and all changes needs to be done to work autodiscover
This is what I was looking for , thanks for sharing, do u have something similarly for how ews query works in Exchange
I have done that too.. Please look at the article http://pmv.bc5.mywebsitetransfer.com/how-to-configure-exchange-2016-hybrid-deployment-with-office-365-part-1/
Very nice..Thank you so much for posting. This is very easy to understand.
Splendid.. fabulous..great knowledge and precisely explained.
I have gone through most of the articles which you have posted. Really it is easy to understand the concept and explanation is awesome too.
HI Radhakrishan,
Could you send a document to configure Autodiscover, for exch 2013.
and what are the requirements for publishing it.