Outlook uses Autodiscover URL left from decommissioned Exchange server

Cloud_Geek_82 801 Reputation points
2023-03-23T01:39:25.9666667+00:00

Hi All,

In the production environment there was an Exchange Server 2013 server.

Users used to work and still work on terminal servers.

Few years ago emails were migrated to Microsoft 365 (users database as synced with Azure AD Sync) and the Exchange Server 2013 server was decommissioned.

While the company stayed on Microsoft Office 2013 there were no issues.

However recently Microsoft Office 2013 was replaced with Microsoft 365 and the fun has began.

Now randomly users unable to launch Outlook and get this error.

outlook work url 03

Also, when I recreate Outlook profile I can see this.

outlook work url 01

outlook work url 02

In other words Outlook tries to use old Autodiscover URL.

outlook work url 04

Is my theory right and Outlook stop working because of old Autodiscover URL?

If yes could you please help me to clean out Active Directory Directory Services information left from old Exchange Server.

Microsoft Exchange Online
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
389 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2023-03-23T06:28:50.2366667+00:00

    The right way to clean up the Active Directory Schema is to uninstall the Exchange Server smoothly to ensure that all the related entries in the schema are cleaned and removed correctly. 

    Below is the article for help - Remove a dead Exchange Server from Active Directory

    0 comments No comments

  2. Cloud_Geek_82 801 Reputation points
    2023-03-23T10:00:16.96+00:00

    Hi Amit Singh,

    Unfortunately, the Exchange Server is gone now.

    I will try to follow the recommendations in your link.

    Thank you.

    0 comments No comments

  3. Jame Xu-MSFT 4,166 Reputation points
    2023-03-24T08:22:20.77+00:00

    Hi @ITGeek_82 ,

    If you enter the following, do you see the old URL in the list? If you do, then change it to a valid URL with Set-ClientAccessServer.

    Get-ClientAccessServer | FT Name,AutodiscoverServiceInternalUri
    

    You could refer to this similar case: https://social.technet.microsoft.com/Forums/en-US/ba6f8e40-b3d0-4560-a560-6a13099c577e/autodiscover-still-picking-up-decommissioned-exchange-server


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Cloud_Geek_82 801 Reputation points
    2023-03-28T20:01:35.1233333+00:00

    Hi @Jame Xu-MSFT ,

    It looks like the command should be run on an Exchange server as on a domain controller cmdlet is not recognized.

    In my case Exchange server was decommissioned 2-3 years ago (it was disjoined from the domain and the VM was removed from Hyper-V).

    0 comments No comments

  5. Jame Xu-MSFT 4,166 Reputation points
    2023-03-31T09:21:10.3233333+00:00

    Hi @ITGeek_82 ,

    Is it normal to use OWA? Can you try using O365 normally?

    0 comments No comments