Skip to content
Pro IT NW

Blog · 8 min read ·

Share

Removing the Last Exchange Server After a Hybrid Migration

Exchange 2016 and 2019 left support in October 2025. A leftover hybrid server running either version is unsupported, and it's often still reachable from the internet.

Here's a pattern we see in organizations of every size. The hybrid migration went fine. Every mailbox moved to Exchange Online. Then the person who ran the project left, or got pulled onto something urgent, and the last step never happened. Years later there's still an Exchange server in the rack or on a hypervisor, often still published to the internet, and nobody is quite sure what it does any more.

For a long time that server was hard to get rid of. Microsoft's own guide calls it "the last Exchange Server (LES) problem" and says the server "must remain in service (patched, licensed, and reachable)". That is no longer true. This post covers what changed, what the server may still be doing for you, and the order to remove it.

Why the last server stayed

If you sync users from Active Directory to Microsoft Entra ID, the Exchange attributes on those users (email addresses, hide-from-GAL, custom attributes) were mastered on-premises. You couldn't change them in Exchange Online. The only supported way to change them was the on-premises Exchange cmdlets. Microsoft is explicit: "Active Directory Users and Computers (ADUC), ADSI Edit, and third-party utilities aren't supported for these attributes." So the server stayed, purely to edit attributes on mailboxes that no longer lived on it.

Microsoft's first workaround was the Exchange Management Tools (EMT) option: install only the management tools and manage recipients with PowerShell. But "EMT lets you shut down the server, but not uninstall it", because the tools depend on Exchange's Active Directory objects staying in place.

What changed: Exchange attributes can now be managed in the cloud

Microsoft's cloud-based management of Exchange attributes moves the Source of Authority (SOA) for Exchange attributes to Exchange Online, one mailbox at a time, by setting IsExchangeCloudManaged to $true. Identity attributes (name, department, manager) stay in Active Directory and keep syncing. Microsoft lists both phases as generally available:

  • Phase 1: per-mailbox transfer of Exchange-attribute SOA. After that, you manage those attributes with Exchange Online PowerShell or the admin centers.
  • Phase 2: writeback of designated Exchange attributes to Active Directory through Microsoft Entra Cloud Sync, for on-premises applications that still read them.

Microsoft's guide spells out the end state: "an organization can first transfer Exchange-attribute SOA to the cloud and decommission its last Exchange Server while continuing to use Active Directory for identity management." And for anyone using the older method, the last-server removal guide says: "If you're using EMT, switch to Cloud-based management of Exchange attributes first, then use this article to uninstall your Exchange Server."

Two prerequisites trip people up. If you use Entra Connect Sync, Microsoft says to "install version 2.5.190.0 or higher". And IsExchangeCloudManaged covers mailboxes only: distribution groups, mail-enabled security groups and mail contacts need their own Group SOA and Contact SOA transfers, or you lose the ability to manage them once the server is gone.

Which situation are you in?

Your situationWhat Microsoft's guidance supports
All mailboxes in Exchange Online, and you no longer need directory sync at allDisable directory sync, clean up hybrid, and remove Exchange (Scenario 1).
All mailboxes in Exchange Online, and you keep Active Directory for identityTransfer Exchange-attribute SOA for every synced mailbox (plus groups and contacts), clean up hybrid, then uninstall the last server.
The server still relays mail for applications or devices, or hosts public foldersMove those first. Microsoft recommends against removing Exchange while those dependencies remain.
Some mailboxes are still on-premisesYou aren't at the last-server stage yet. Finish the migration.

What breaks if you just switch it off

This is where half-finished projects hurt. The server often picked up jobs nobody wrote down. Before you touch it, check each of these:

  1. SMTP relay. Printers, scanners, line-of-business apps and monitoring tools often send through Exchange. "Exchange Server uninstall automatically removes all Receive Connectors", and Microsoft warns "the loss of relay functionality is permanent." Move relay to Exchange Online or another service first.
  2. Centralized mail transport. If it was enabled in the hybrid wizard, outbound mail from Exchange Online still flows through your server. Microsoft: "Uninstall breaks outbound mail flow."
  3. Public folders. "On-premises public folders block Exchange uninstall." Migrate them, or remove them if nothing in them is worth keeping.
  4. Autodiscover, inside and out. Update public and internal DNS, and clear the service connection point in Active Directory. "Even with DNS updated, a stale SCP keeps internal clients pointed at on-premises Exchange." Remove the old mail. and owa. host records too.
  5. Applications that read Exchange attributes from AD. If something on-premises reads proxyAddresses or the custom attributes, set up Cloud Sync writeback so those values stay current.
  6. Hybrid leftovers. Remove the hybrid configuration object so a future run of the Hybrid Configuration Wizard doesn't recreate it, remove the connectors and organization relationship, and uninstall the hybrid agent if you used Modern Hybrid.
  7. The Active Directory clean-up step. Microsoft offers a script to remove leftover Exchange objects and warns "This step can't be undone." Do it last, and only if you'll never run Exchange on-premises again.

Is it still worth doing if everything works?

Yes, mainly for security. Exchange Server 2016 and 2019 left support in October 2025 (see our Exchange 2019 end-of-life guide and what the paid update bridge did and didn't cover). A leftover server running either version is unsupported, and it often still has a hybrid certificate and an internet-facing endpoint. Microsoft's own summary of the payoff: "Removing the on-premises Exchange Server tightens your security posture by eliminating one more patched, internet-exposed server."

Five questions to answer before anyone touches it

  1. Is every mailbox, shared mailbox and public folder in Exchange Online?
  2. What still sends mail through this server, and from which IP addresses?
  3. Do you still need directory sync, and which sync tool and version are you on?
  4. Who has the admin credentials and the hybrid certificate, and are they still with the company?
  5. Where does autodiscover for your domain point today, internally and externally?

If the honest answer to any of these is "not sure", that's the inventory to do first. It's usually a few days of work, and it's the part that was never written down when the project stopped.

Where we fit

Pro IT NW is a labor-only Microsoft project shop. We don't sell managed services or resell licences. We come in, finish the decommission, document what we changed, and leave. See Exchange hybrid decommission, and if your servers are still on 2016 or 2019 with mailboxes on them, start with the Exchange SE coexistence deadline.

This is technical guidance based on Microsoft's published documentation as of November 2026. Test each step in your own environment before you change production.

Questions we get asked

Can I remove the last Exchange server if I still sync users from Active Directory?
Yes, now. Microsoft's cloud-based management of Exchange attributes lets you transfer the Source of Authority for Exchange attributes on each directory-synchronized mailbox to Exchange Online (IsExchangeCloudManaged), while identity attributes stay in Active Directory. Microsoft's guide describes decommissioning the last Exchange Server while continuing to use Active Directory for identity management.
Can I just shut the last Exchange server down?
Only if nothing else depends on it. Microsoft says not to shut it down if it is used for anything other than recipient management, SMTP relay being the common example. Uninstalling also removes every Receive Connector, so printers, scanners and applications that relay through it stop sending mail.
Is the Exchange Management Tools method still the recommended path?
No. The Management Tools option lets you shut the server down but not uninstall it. Microsoft's current guide says that if you use it, you should switch to cloud-based management of Exchange attributes first, then uninstall.
What about distribution groups and mail contacts?
IsExchangeCloudManaged applies to mailboxes only. To keep managing mail-enabled groups and mail contacts after the server is gone, transfer their Source of Authority to the cloud with Group SOA and Contact SOA transfer.

Written by the team at · Senior-led Microsoft project consultancy · Seattle and the Pacific Northwest, delivered USA-wide.

Mailboxes moved, but the Exchange server is still on?

Senior Microsoft engineers based in the Pacific Northwest — onsite around Puget Sound, remote anywhere in the US. Tell us the environment and the deadline, and we'll scope it as a fixed-fee project.