Skip to content
WiseChecker
  • Home
  • Quizzes
    • Ability
    • Knowledge
    • Personality
  • Games
  • Tools
  • About Us
Outlook AutoDiscover Failed: How to Set Up an XML File Fix
🔍 WiseChecker

Outlook AutoDiscover Failed: How to Set Up an XML File Fix

2026年4月17日 by wisechecker

You see an error that AutoDiscover failed when setting up an Outlook profile. This prevents Outlook from automatically finding your Exchange server settings. The issue often occurs when the standard connection methods are blocked or misconfigured. This article explains how to create and use an XML file to manually provide the correct server information to Outlook.

Key Takeaways: Fixing AutoDiscover with an XML File

  • AutoDiscover.xml file: Provides Outlook with the correct Exchange server address when the automatic lookup fails.
  • Control Panel > Mail > Show Profiles: The location to add a new Outlook profile that will use the XML file for setup.
  • SRV record or CNAME redirect: Common network-level configurations that must be correct for standard AutoDiscover to work before trying the XML method.

Why AutoDiscover Fails and How an XML File Helps

AutoDiscover is a service that automatically configures Outlook profiles by finding your Exchange server’s address. It fails when Outlook cannot contact the correct URL, often due to network issues, DNS misconfiguration, or security software. The standard process tries several URLs in sequence, and if all fail, the profile setup stops.

An AutoDiscover.xml file acts as a manual override. You place this file on a web server that Outlook can access. When you create a new profile, you can point Outlook to this specific file location. The XML inside contains the exact server hostname and connection settings, bypassing the failed automatic discovery process entirely. This method is useful for administrators to deploy correct settings or for troubleshooting individual user setups.

Prerequisites for the XML File Method

You need a web server, like IIS, to host the XML file. The server must be accessible from the user’s computer over HTTPS. You also need the correct internal or external URL for your Exchange server, which your IT administrator can provide. The XML file must use a specific schema that Outlook recognizes.

Steps to Create and Use an AutoDiscover XML File

Follow these steps to create the XML file and configure a new Outlook profile to use it.

  1. Create the XML file
    Open Notepad and paste the following code. Replace “mail.contoso.com” with your actual Exchange server hostname. Save the file as `AutoDiscover.xml` on your desktop.

    <?xml version="1.0" encoding="utf-8"?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
    <Account>
    <AccountType>email</AccountType>
    <Action>settings</Action>
    <Protocol>
    <Type>EXCH</Type>
    <Server>mail.contoso.com</Server>
    <ServerDN>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=EXCH01</ServerDN>
    <ServerVersion>15.1.2507.6</ServerVersion>
    <MdbDN>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=EXCH01/cn=Microsoft Private MDB</MdbDN>
    <ASUrl>https://mail.contoso.com/EWS/Exchange.asmx</ASUrl>
    <OOFUrl>https://mail.contoso.com/EWS/Exchange.asmx</OOFUrl>
    <OABUrl>Public Folder</OABUrl>
    </Protocol>
    </Account>
    </Response>
    </Autodiscover>

  2. Host the XML file on a web server
    Upload the `AutoDiscover.xml` file to a directory on your web server, such as `C:\inetpub\wwwroot\`. Ensure the file is accessible via a URL like `https://webserver.contoso.com/AutoDiscover/AutoDiscover.xml`. Test the URL in a web browser to confirm it downloads the XML file.
  3. Create a new Outlook profile using the XML file
    Close Outlook. Open Control Panel and go to Mail (32-bit) or search for “Mail” in Windows. Click Show Profiles. Click Add, enter a name for the new profile, and click OK. In the Add Account dialog, enter your email address and click Next. When the AutoDiscover process starts, hold down the Ctrl key, right-click the Outlook icon in the system tray, and choose Test Email AutoConfiguration.
  4. Enter the XML file URL in the test tool
    In the Test Email AutoConfiguration window, check the Use AutoDiscover box. In the field next to it, enter the full URL to your XML file, for example, `https://webserver.contoso.com/AutoDiscover/AutoDiscover.xml`. Click Test. The tool should now return successful results using the data from your XML file. Close the test tool.
  5. Complete the profile setup
    Back in the main Outlook account setup window, enter your password and click Next. Outlook should now configure the account using the server information from the XML file. Click Finish to complete the setup.

If the XML File Method Does Not Work

If Outlook still fails to configure after using the XML file, check these common problems.

Outlook Ignores the XML File URL

The Test Email AutoConfiguration tool may show an error. Verify the XML file URL is correct and accessible from the user’s machine. Check that the web server’s SSL certificate is valid and trusted. Ensure the XML schema is correct and the Exchange server hostname is accurate.

Profile Still Fails with Credentials Error

The XML file provides the server location, but authentication can still fail. Confirm your username and password are correct. Verify your account is enabled on the Exchange server. Check if you need to use your domain\username format for the login.

Existing Profile is Corrupt

If you applied the fix to an existing profile, it may be damaged. Create a brand new profile from Control Panel > Mail > Show Profiles. Use the XML file method during the setup of this fresh profile.

AutoDiscover Connection Methods Compared

Item Standard AutoDiscover XML File Method
Primary Mechanism DNS lookup for SRV record or specific URL Manual URL pointing to a hosted XML file
Configuration Effort Automatic, requires correct DNS setup Manual file creation and web server hosting
Use Case Standard deployment for all users Troubleshooting or specific user/device setup
Reliability High when network/DNS is correct High, bypasses network discovery issues
Security Uses SSL and standard authentication Requires a secure HTTPS connection to the XML file

You can now manually configure an Outlook profile when AutoDiscover fails. The XML file provides a reliable fallback method by specifying the exact server details. For ongoing use, ask your IT team to verify the DNS SRV records for AutoDiscover. An advanced tip is to use the Outlook Connectivity Test tool on the Microsoft website to diagnose the exact point of failure in the standard AutoDiscover chain.

← Back to WiseChecker HomeMore in Windows & PC

🔍 Recommended for You

How to Configure Outlook for a Custom Domain Email on Google WorkspaceYou need to access your professional Google Workspace email from Outlook on your Windows PC. Your email uses…How to Set Default Meeting Duration to 25 or 50 Minutes in OutlookYou may want to schedule shorter meetings to improve productivity and leave time for breaks. Outlook's default meeting…
Categories Windows & PC Tags Outlook, Outlook Account, Outlook Errors
How to Remove an Email Account From Outlook Without Losing Data
How to Manually Configure Outlook When AutoDiscover Fails

Quick Links

  • About Us
  • Privacy Policy
  • Terms of Use
  • SiteMap
  • Contact Us
© 2026 WiseChecker.com. All rights reserved.