Configure Outlook 365 Autodiscover for On-Premises Exchange
Question details
Configure Outlook 365 to discover an on-premises Exchange server instead of using the explicit Microsoft 365 endpoint.

- Product
- Microsoft Outlook 365 and on-premises Microsoft Exchange
- Device & OS
- Windows
- Scenario
- A user without a Microsoft 365 account is setting up an Outlook profile for an on-premises Exchange mailbox.
- Observed behavior
- Outlook may redirect the user to a Microsoft 365 sign-in page when Autodiscover detects the explicit Microsoft 365 endpoint.
Confirm that the mailbox is hosted on an on-premises Exchange server and that you can edit registry settings for the affected Windows user. Close Outlook before making changes, and check with your administrator if registry settings are managed by Group Policy.
Exclude the explicit Microsoft 365 Autodiscover endpoint
Use this registry setting when Outlook redirects an on-premises Exchange user to Microsoft 365 sign-in.
The ExcludeExplicitO365Endpoint value tells Outlook not to use the explicit Office 365 Autodiscover endpoint. Outlook must still be able to locate the on-premises Exchange Autodiscover service.
Press Windows + R, enter regedit, and select OK. Approve the prompt if one appears.
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover. Create the AutoDiscover key if it is missing. In the right pane, select New > DWORD (32-bit) Value, name it ExcludeExplicitO365Endpoint, and set its value data to 1.
Navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover. Create any missing keys, then create a DWORD (32-bit) Value named ExcludeExplicitO365Endpoint and set its value data to 1.
Open Outlook again and try connecting to the on-premises mailbox. If the redirect continues, open Control Panel > Mail > Show Profiles to check the profile, and ask your Exchange administrator to verify the on-premises Autodiscover configuration.

Use WPS Office for everyday document work
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make migration easier. It does not fix Outlook Autodiscover or replace an Exchange email client.

Frequently Asked Questions
Why does Outlook show a Microsoft 365 sign-in page for my on-premises mailbox?
Outlook Autodiscover may detect the explicit Microsoft 365 endpoint before connecting to the on-premises Exchange service. Setting ExcludeExplicitO365Endpoint to 1 tells Outlook not to use that endpoint.
What type of registry value should I create?
In Registry Editor, create a DWORD (32-bit) Value named ExcludeExplicitO365Endpoint and set its value data to 1 under both specified AutoDiscover registry paths.
What if the AutoDiscover registry key is missing?
In Registry Editor, navigate to the nearest existing parent key, right-click it, and select New > Key. Create the missing keys until the AutoDiscover path exists, then add the DWORD value.
What should I check if Outlook still cannot connect?
Open Control Panel > Mail > Show Profiles to check the Outlook profile. Ask your Exchange administrator to verify that the on-premises Autodiscover service and its DNS configuration are accessible.




