Exchange Connection Problems

Configure Outlook 365 Autodiscover for On-Premises Exchange

John WilsonJohn Wilson Nov 18, 2026 873 views

Question details

Configure Outlook 365 to discover an on-premises Exchange server instead of using the explicit Microsoft 365 endpoint.

Configure Outlook 365 Autodiscover for On-Premises Exchange
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Registry Editor

Press Windows + R, enter regedit, and select OK. Approve the prompt if one appears.

2
Set the Outlook value

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.

3
Set the policy value

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.

4
Restart and verify Outlook

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.

Exclude the explicit Microsoft 365 Autodiscover endpoint
Managed policy settings: Group Policy may overwrite the value under the Policies registry path. Contact your administrator if the setting changes back or you cannot edit it.
Free Microsoft Office alternative

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.

Keep working on Office documents while your Outlook connection is being resolvedOpen and edit Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsGet a free, lightweight productivity suite
microsoft office alternative - wps office

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.