Forum Discussion

Dools1530's avatar
Dools1530
Copper Contributor
Nov 03, 2024

Last Exchange Server Shutdown. Exchange Management Shell attempts to connect to old Server

We have migrated all mailboxes to Exchange Online and felt we were in a position to shutdown the last on-prem 2016 Exchange Server. We followed the instructions in the following article to shutdown the last Exchange Server and manage recipients using the Exchange 2019 Management tools. 

https://learn.microsoft.com/en-us/exchange/manage-hybrid-exchange-recipients-with-management-tools

 

When we open the Exchange Management Shell on the server running the new management tools it attempts to connect to the old Exchange Server.

What do we need to do so the Exchange Management Tools stops connecting to the old exchange?

1 Reply

  • RyderEvan's avatar
    RyderEvan
    Iron Contributor

    1. Check the hybrid deployment configuration: Open Exchange Management Shell (EMS) and run the following command to check the hybrid deployment configuration:
    powershell
    Get-HybridConfiguration
    If the hybrid deployment configuration is still present, you may need to clean up or disable the hybrid deployment.
    2. Disable Hybrid Deployment: Open the Exchange Management Shell (EMS) and run the following command to disable Hybrid Deployment:
    powershell
    Remove-HybridConfiguration
    Verify that hybrid deployment is disabled.
    3. Check Exchange Server Roles: Open the Exchange Management Shell (EMS) and run the following command to check server roles:
    powershell
    Get-ExchangeServer | Select Name, ServerRole
    Ensure that all Exchange server roles have been properly uninstalled or migrated.
    4. Clean up Exchange-related components: Open Control Panel > Programs and Features and uninstall all Exchange-related components.
    Manually delete the Exchange installation directory (usually C:\Program Files\Microsoft\Exchange Server).
    5. Check DNS records: Ensure that DNS records (e.g. Autodiscover, MX records) have been correctly pointed to Office 365.
    Delete the DNS records that point to the local Exchange Server.
    6. Contact Microsoft Support: If none of the above methods work, it is recommended to contact Microsoft support team to provide detailed error messages and logs for further assistance.