Exchange playbook · End of support

Exchange 2016 and 2019 end of support: what to do now

Security updates have stopped. Choose your option, remove the last Exchange server the supported way, re-point SMTP relay and get ready for the EWS shutdown.

Updated 15 min readMicrosoft sources linked
Start here

What should you do now Exchange 2016 and 2019 support has ended?

Short answer

Exchange Server 2016 and 2019 no longer receive security updates. For most organisations the answer is to finish moving to Exchange Online (the Microsoft 365 mail service) and remove the last on-premises server the supported way.

  • Recommended route: Move to Exchange Online and remove the last Exchange server
  • Order: Find everything that still depends on the server first, then move it to Exchange Online, and remove the server last.
  • 6 phases: Take stock, Move what is left, Re-point relay, Prepare EWS apps, Switch mail flow and Remove the server.
  • You're done when: All five Get-Mailbox checks return nothing, and every synced mailbox is cloud managed.

That means moving what is left, re-pointing printers, scanners and apps that send mail through the server, preparing apps that use EWS (Exchange Web Services, an older way for apps to reach mailboxes) for its shutdown in Exchange Online on 1 April 2027, then uninstalling the server. The time depends on how many relay devices, apps and leftover mailboxes you find.

Recommended routeMove to Exchange Online and remove the last Exchange server

Leaves no unpatched server to protect, and Microsoft documents the full removal, including managing synced users without a server.

Other options and when to use them
  • Upgrade to Exchange Server Subscription Edition (the current on-premises version, licensed by subscription): A named group of mailboxes truly must stay on-premises. Size it for that group only.
  • Move mail to another platform such as Google Workspace: You already plan to leave Microsoft for mail. The hybrid clean-up and uninstall still apply.
  • Keep a server only for relay or management: A short stop-gap with a removal date while devices and recipient management move to the cloud.
Order to migrate in, and why

Find everything that still depends on the server first, then move it to Exchange Online, and remove the server last. Every step before the uninstall can be reversed; the uninstall cannot.

  1. Inventory: mailboxes that must stay, relay senders, EWS apps and synced objectsDecides whether you remove the server at all, and lists everything that would break when it goes.
  2. Remaining mailboxes and public foldersAnything left on-premises, including hidden system mailboxes, blocks the uninstall, and public folders take the longest.
  3. Attribute management: mailboxes to the cloud, then groups and contactsOnce Exchange is gone you cannot edit these on-premises, so management must move first.
  4. Relay devices and appsThe uninstall removes every receive connector, so each sender must already use a cloud method.
  5. EWS apps (in parallel)Runs on its own deadline of 1 April 2027, whether or not you still have a server.
  6. Mail flow: MX, Autodiscover, the SCP and centralised mail transportMail must already flow through Exchange Online before the server stops, or inbound or outbound mail breaks.
  7. Hybrid clean-up, then the uninstallRemove-HybridConfiguration stops the wizard recreating hybrid objects, and the clean-up needs the server still running.
  8. Exchange Online tidy-upRemoves the leftover on-premises organisation and migration endpoints, which only make sense to remove once the server is gone.
Settings checklist: decide these before you copy

Built-in and third-party tools treat these differently. Tick each one off once you have decided.

Download this checklist (Excel)
  • How each tool handles it
    Built-in methodStaying on-premises means Exchange Server Subscription Edition, the supported on-premises version. Its licensing depends on the server licences and client access licences you need, and whether Software Assurance or a subscription is required.

    Tip: Count the mailboxes that must stay, and get a written licensing quote for exactly that number.

  • How each tool handles it
    Built-in methodUninstall: any mailbox or public folder left on-premises blocks it. That includes archive, arbitration and audit log mailboxes, and offline address books generated by a system mailbox. Microsoft recommends migrating public folders rather than removing them.

    Tip: Run the five Get-Mailbox checks with Set-ADServerSettings -ViewEntireForest:$true early, not on the day.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodIsExchangeCloudManaged: once set to True, you edit the mailbox with Set-Mailbox in Exchange Online. It needs Entra Connect Sync 2.5.190.0 or later, and an Exchange Administrator, Hybrid Identity Administrator or Global Administrator signed in interactively.

    Tip: Check Get-Mailbox shows IsExchangeCloudManaged True for every synced mailbox before you go further.

    Microsoft Learn: Enable cloud management of Exchange attributes
  • How each tool handles it
    Built-in methodIsExchangeCloudManaged covers mailboxes only. Groups and contacts need a source of authority transfer (moving where they are managed from) through Microsoft Graph, as Microsoft's procedure lists. After Exchange is removed, you can no longer manage them on-premises.

    Tip: List every synced group and contact first, and plan the transfers before any clean-up.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodUninstall: Exchange schema extensions and per-user attributes such as proxyAddresses stay in Active Directory. Writeback through Microsoft Entra Cloud Sync keeps the Active Directory copy current, and Microsoft says you need it only if an on-premises app reads those values.

    Tip: Ask app owners before you skip writeback.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodUninstall removes every receive connector, so relay stops for good. Microsoft 365 offers SMTP client submission (needs a licensed mailbox and SMTP AUTH), direct send (staff recipients only) and a connector (needs a static public IP or a certificate).

    Tip: Send a test message from each device and record the result in your relay inventory.

    Microsoft Learn: Set up a device or application to send email using Microsoft 365
  • How each tool handles it
    Built-in methodExchange Online: EWS is blocked by default since 1 October 2026 unless the app ID is on the EWSAllowedAppIDs list, and removed for everyone on 1 April 2027. Setting the list replaces it, and changes can take up to 24 hours.

    Tip: Use the allow list only as a short bridge, and remove each app ID once its Graph release works for a pilot group.

    Microsoft Tech Community: Exchange Online EWS, your time is almost up
  • How each tool handles it
    Built-in methodMX must point at your mail.protection.outlook.com host and Autodiscover at autodiscover.outlook.com before teardown. Domain-joined Outlook checks the SCP (the Active Directory setting that points Outlook at the server) before DNS, so clear it.

    Tip: Check both records with Resolve-DnsName and send test mail in and out.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodIf centralised mail transport is on, the uninstall breaks outbound mail flow. Turn it off in the Hybrid Configuration Wizard, or set RouteAllMessagesViaOnPremises to False on the hybrid outbound connector.

    Tip: Send outbound test mail from a cloud mailbox after the change.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodEvery hybrid setup removes the hybrid configuration, connectors and organisation relationship, and resets the OAuth credentials. The federation trust and federation certificate steps apply only if federated sharing was set up. Hybrid Agent removal applies only to Modern Hybrid.

    Tip: Run the Get- commands again afterwards to confirm nothing hybrid is left.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
  • How each tool handles it
    Built-in methodUninstall removes the Active Directory containers and security groups the Management Tools need, so the two routes do not mix. The Management Tools route lets you shut the server down but not uninstall it.

    Tip: Pick one route before you start the clean-up, and write it in the plan.

    Microsoft Learn: Manage hybrid recipients with the Management Tools
  • How each tool handles it
    Built-in methodHybrid set the domain to InternalRelay. Microsoft says it may need to change to Authoritative once Exchange Online is the only mail system.

    Tip: Run Get-AcceptedDomain after the change and send test mail to an unknown address on the domain.

    Microsoft Learn: Remove the last Exchange server in a hybrid deployment
The plan, phase by phase
  1. 1

    Take stock

    Now

    Watch out: Exchange 2016 and 2019 get no more security updates, so an internet-facing server is a growing risk.

    Ways around it

    • If you must keep one for now, restrict inbound access from the internet and set a removal date.

    Watch out: Staying on-premises with Subscription Edition is an ongoing licensing cost, set by the server licences and client access licences you need.

    Ways around it

    • Count the mailboxes that must stay, and get a written licensing quote for exactly that number.
    Show the detail →
  2. 2

    Move what is left

    Watch out: Hidden system mailboxes, archives, public folders and some offline address books block the uninstall.

    Ways around it

    • Run the checks early with Set-ADServerSettings -ViewEntireForest:$true, and migrate public folders well before the removal date.

    Watch out: IsExchangeCloudManaged covers mailboxes only. Mail-enabled groups and mail contacts cannot be edited on-premises once Exchange is gone.

    Ways around it

    • Transfer their source of authority (where they are managed from) through Microsoft Graph, as Microsoft's procedure lists.
    Show the detailed steps (8) →
  3. 3

    Re-point relay

    Watch out: Uninstalling Exchange removes every receive connector, so relay stops for good.

    Ways around it

    • Move and test every sender before the uninstall date.

    Watch out: Each method has a catch: client submission needs a licensed mailbox, direct send cannot reach outside addresses, and a connector needs a static IP or certificate.

    Ways around it

    • Use direct send for devices that only email staff, and a connector for many devices that email outside addresses.
    Show the detail →
  4. 4

    Prepare EWS apps

    Before 1 April 2027

    Watch out: Exchange Online has blocked EWS by default since 1 October 2026, unless an admin allows the app, and removes it for everyone on 1 April 2027.

    Ways around it

    • Replace or retire any app without a Graph release before that date.
    • Setting the allow list replaces it, so include every app you still need, and allow up to 24 hours.
    Show the detailed steps (4) →
  5. 5

    Switch mail flow

    Watch out: If the hybrid outbound connector routes all mail through on-premises, Exchange Online mail breaks when the server goes.

    Ways around it

    • Turn centralised mail transport off and test outbound mail before the uninstall.

    Turn this phase into dated tasks with the cutover planner

    Check your DNS records before and after the change

    Show the detailed steps (8) →
  6. 6

    Remove the server

    After every check passes

    Watch out: The uninstall cannot be undone. Going back means installing a new supported Exchange server and re-running the Hybrid Configuration Wizard.

    Ways around it

    • Validate fully first: every step before the uninstall can be reversed.

    Watch out: The uninstall removes the Active Directory containers and groups that the Exchange Management Tools (a way to manage synced recipients with the server switched off) depend on, so the two paths do not mix.

    Ways around it

    • Pick one route: cloud attribute management with a full uninstall, or the Management Tools with the server shut down but not uninstalled.
    Show the detailed steps (8) →
You are finished when
  • All five Get-Mailbox checks return nothing, and every synced mailbox is cloud managed.
  • Mail flows in and out, with MX and Autodiscover pointing at Exchange Online.
  • Every relay sender on the inventory has a Delivered test result.
  • Only apps waiting on a Graph release are on the EWS allow list, each with a vendor date before 1 April 2027.
Click by click

What does each step involve?

Open a part when you reach it in the plan. Each step says where to go, what to do and what you should see.

1Exchange 2016 and 2019 are out of support

Exchange Server 2016 and 2019 left support on 14 October 2025. Organisations that bought extended security updates received them until October 2026, and Microsoft has said there will be no further extension. Servers still running either version no longer receive security fixes.

DateWhat happenedEffect
14 Oct 2025End of support for Exchange 2016 and 2019No updates unless you joined the extended programme
1 Oct 2026EWS blocked by default in Exchange OnlineApps using EWS fail unless allowed by app ID
Oct 2026Final extended security update releasedNo fixes for anyone from now on
1 Apr 2027EWS removed from Exchange OnlineNo exceptions; apps must use Microsoft Graph
2What you need before step one
NeedDetailsWhere to get it
On-premises Exchange adminMember of the Organization Management role group, for the Exchange Management Shell and the uninstall. Microsoft notes a Domain Admin runs setup if that group has already been removed.Your Active Directory. Exchange Management Shell from Start > Microsoft Exchange Server on the server
Exchange Online adminExchange Administrator (recommended), Hybrid Identity Administrator or Global Administrator to set IsExchangeCloudManaged, signed in interactively. App-only sign-in is not supported for this.https://learn.microsoft.com/en-us/exchange/hybrid-deployment/enable-exchange-attributes-cloud-management
Exchange Online PowerShellThe ExchangeOnlineManagement module on your admin PC, for cloud management, connectors and clean-up.Install the module and connect
Entra Connect Sync versionVersion 2.5.190.0 or later before you move attribute management to the cloud.Install Entra Connect Sync
Hybrid Configuration WizardTo turn off centralised mail transport, if you prefer the wizard to PowerShell.https://aka.ms/HybridWizard, see run the Hybrid Configuration Wizard
Hybrid Agent module (Modern hybrid only)HybridManagement.psm1, for removing the Hybrid Agent during clean-up.https://aka.ms/HybridAgentPSM
DNS accessSign-in to your public DNS host and internal DNS servers, for MX and Autodiscover.Your registrar, DNS host or IT provider
Relay inventoryEvery printer, scanner and app that relays through Exchange, with its IP and new sending method. SMTP client submission needs a licensed mailbox.Network and DNS worksheet template; see re-point SMTP relay
EWS app listApps with EWS.AccessAsUser.All or full_access_as_app permissions, with their app IDs and vendor contacts.Microsoft Entra admin center (https://entra.microsoft.com) > App registrations and Enterprise applications
3Remove the last Exchange server the supported way8 steps
  1. 1

    Confirm nothing is left on-premises

    Where: Exchange Management Shell on the last Exchange server (Start > Microsoft Exchange Server > Exchange Management Shell)

    Migrate or remove every mailbox and public folder. Check arbitration, audit log and archive mailboxes too, and any offline address book generated by a system mailbox, because they also block the uninstall. Microsoft recommends migrating public folders to Exchange Online rather than removing them.

    Set-ADServerSettings -ViewEntireForest:$true
    Get-Mailbox
    Get-Mailbox -Archive
    Get-Mailbox -PublicFolder
    Get-Mailbox -Arbitration
    Get-Mailbox -AuditLog
    You should see: All five Get-Mailbox commands return nothing.
  2. 2

    Move Exchange attribute management to the cloud

    Where: Exchange Online PowerShell on your admin PC, connected with Connect-ExchangeOnline

    If the module is not set up yet, follow connect to Exchange Online PowerShell. For each directory-synchronised mailbox, set cloud-based management of Exchange attributes so you can edit them with Set-Mailbox in Exchange Online. IsExchangeCloudManaged covers mailboxes only: mail-enabled groups and mail contacts use a source of authority transfer through Microsoft Graph, as listed in Microsoft's procedure.

    Get-Mailbox -ResultSize Unlimited | Where-Object { $_.IsDirSynced -eq $true -and $_.IsExchangeCloudManaged -eq $false } |
        ForEach-Object { Set-Mailbox -Identity $_.Alias -IsExchangeCloudManaged $true }
    Get-Mailbox -Identity user@contoso.com | Format-List IsExchangeCloudManaged
    You should see: IsExchangeCloudManaged shows True for every synchronised mailbox, and groups and contacts have a planned or completed SOA transfer.
  3. 3

    Point mail flow and Autodiscover at Exchange Online

    Where: Your public DNS host and internal DNS servers, then the Exchange Management Shell on the Exchange server

    MX should resolve to your mail.protection.outlook.com host and Autodiscover to autodiscover.outlook.com. Update internal and external Autodiscover DNS, then clear the Autodiscover SCP.

    Resolve-DnsName -Name contoso.com -Type MX
    Resolve-DnsName -Name autodiscover.contoso.com -Type CNAME
    Get-ClientAccessService | Set-ClientAccessService -AutoDiscoverServiceInternalUri $Null
    You should see: MX returns contoso-com.mail.protection.outlook.com, the Autodiscover CNAME returns autodiscover.outlook.com, and the SCP command completes without errors.
  4. 4

    Turn off centralised mail transport

    Where: Hybrid Configuration Wizard on the Exchange server, or Exchange Online PowerShell

    Either re-run the wizard (see run the Hybrid Configuration Wizard) and clear Enable Centralized Mail Transport, or set the hybrid outbound connector so it no longer routes all mail through on-premises.

    Set-OutboundConnector -Identity "<Hybrid Outbound Connector name>" `
        -RecipientDomains "<accepted domains>" -RouteAllMessagesViaOnPremises:$False
    You should see: Get-OutboundConnector shows RouteAllMessagesViaOnPremises False, and outbound test mail from a cloud mailbox is delivered.
  5. 5

    Find every device and app that relays through Exchange

    Where: Exchange Management Shell on the Exchange server

    Printers, scanners and line-of-business apps lose relay when Exchange is removed. List connectors that allow anonymous relay and re-point every sender first (see below).

    Get-ReceiveConnector | Where-Object { $_.PermissionGroups -match 'AnonymousUsers' } |
        Format-Table Name, Bindings, RemoteIPRanges -AutoSize
    You should see: A table of relay connectors and the IP ranges that use them; every IP in it is on your relay inventory with a new sending method.
  6. 6

    Clean up the hybrid configuration

    Where: Exchange Management Shell on the Exchange server, and Exchange Online PowerShell

    Remove the hybrid configuration object (on-premises), the HCW intra-organisation connectors (in both shells), the hybrid inbound and outbound connectors in Exchange Online and the organisation relationship. Microsoft's procedure also lists optional federation trust, certificate, OAuth and Hybrid Agent cleanup steps; follow them if they apply to you.

    # Exchange Management Shell
    Remove-HybridConfiguration
    # Exchange Management Shell and Exchange Online PowerShell
    Get-IntraOrganizationConnector | Where-Object { $_.Name -like 'HybridIOC -*' } | Remove-IntraOrganizationConnector -Confirm:$false
    # Exchange Online PowerShell
    Get-InboundConnector | Where-Object { $_.ConnectorSource -eq 'HybridWizard' } | Remove-InboundConnector
    Get-OutboundConnector | Where-Object { $_.ConnectorSource -eq 'HybridWizard' } | Remove-OutboundConnector
    Get-OrganizationRelationship | Where-Object { $_.Name -like 'O365 to On-Premises*' } | Remove-OrganizationRelationship
    You should see: Running the Get- commands again returns no hybrid connectors or O365 to On-Premises relationship.
  7. 7

    Uninstall Exchange

    Where: The Exchange server: Command Prompt as administrator in the Exchange setup folder, or Control Panel > Programs and Features > Microsoft Exchange Server > Uninstall

    Uninstall rather than just switching off. Uninstall removes all receive connectors, so relay must already be moved. Do not uninstall if you rely on the Exchange Management Tools approach.

    Setup.exe /m:Uninstall /IAcceptExchangeServerLicenseTerms
    You should see: Setup completes without errors and Microsoft Exchange Server no longer appears in Programs and Features.
  8. 8

    Tidy Exchange Online

    Where: Exchange Online PowerShell on your admin PC

    Check for leftovers, remove the orphaned on-premises organisation and migration endpoints, and consider setting your domain from InternalRelay back to Authoritative.

    Get-OnPremisesOrganization | Remove-OnPremisesOrganization
    Get-MigrationEndpoint | Remove-MigrationEndpoint
    Set-AcceptedDomain -Identity contoso.com -DomainType Authoritative
    Get-AcceptedDomain
    You should see: Get-OnPremisesOrganization and Get-MigrationEndpoint return nothing, and Get-AcceptedDomain shows the domain as Authoritative.
Exchange Management Tools are a workaround, not the fix. Microsoft describes the Management Tools approach as letting you shut the server down but not uninstall it. Do not run the uninstall if you rely on the Management Tools.
4Re-point SMTP relay

Make a list of every device and application that sends mail through Exchange, then choose a method for each one. Microsoft describes three main options for sending from devices and apps through Microsoft 365.

MethodGood forWatch out for
SMTP client submission (authenticated, port 587)Devices that support a username, password and TLSNeeds a licensed mailbox and SMTP AUTH allowed for it
Direct send (to your MX endpoint)Sending only to your own staffCannot send to external addresses; needs SPF for the sending IP
Connector relay (by static IP or certificate)Many devices, external recipientsNeeds a static public IP or certificate and an inbound connector

Use the inventory template to record each device, its owner, the method you chose and the test result.

5Find apps that still use EWS4 steps
  1. 1

    List your EWS apps

    Where: Microsoft Entra admin center (entra.microsoft.com) > App registrations and Enterprise applications > each app > API permissions

    Look for apps granted the Office 365 Exchange Online permissions EWS.AccessAsUser.All (delegated) or full_access_as_app (application). Microsoft also asks admins to review the EWS usage reports in the tenant. Then ask vendors of add-ins, CRMs, backup, archiving and signature tools which API they use.

    You should see: A list of every app that uses EWS, with its application (client) ID, owner and vendor contact.
  2. 2

    Ask each vendor for a Graph version

    Where: Your risk register, one row per app

    Apps must move to Microsoft Graph. Record the vendor's date for a Graph release in your risk register.

    You should see: Every EWS app has a Graph release date, or a replacement or retirement plan, before 1 April 2027.
  3. 3

    Allow only what you must, temporarily

    Where: Exchange Online PowerShell on your admin PC, connected with Connect-ExchangeOnline

    Admins can keep EWS working for named apps by adding their app IDs to the tenant-level EWSAllowedAppIDs list in the organisation configuration. Setting the list replaces the existing list, so include every app you still need, and allow up to 24 hours for changes. This ends on 1 April 2027 regardless. Check the current list with the command below.

    Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs
    You should see: EwsAllowedAppIDs lists exactly the app IDs you intend to allow, and nothing else.
  4. 4

    Test before the shutdown

    Where: A pilot group of mailboxes, using each app's Graph release

    Run each replacement against a pilot group well before April 2027, then remove the app ID from the allow list once it works on Graph.

    You should see: Each app works for the pilot group with its app ID removed from the allow list.
6Exchange Server Subscription Edition: what to check

Subscription Edition is the supported on-premises version. Before planning an upgrade, confirm with Microsoft or your licensing partner:

  • which server licences and client access licences you need, and whether Software Assurance or a subscription is required
  • whether you need it only for hybrid management, and whether cloud-based attribute management removes that need
  • the supported upgrade path from your current version and cumulative update
Why no prices here? Licensing terms and prices change and depend on your agreement. Get a written quote for your situation.
Worth knowing

What can go wrong, and how do you avoid it?

The detail behind the plan: options compared, and what experienced engineers check first. Tap any item.

Things to consider

What experienced Exchange admins check before they remove the last server or switch off EWS.

Reduces risk

Relay stops the moment Exchange is uninstalled

Uninstalling Exchange removes every receive connector. Printers, scanners and line-of-business apps that relay through it stop sending mail permanently.

What to do

List anonymous relay connectors and their remote IP ranges, move each device to SMTP client submission, direct send or a connector in Exchange Online, and test each one before the uninstall date.

Microsoft Learn: Remove the last Exchange server in a hybrid deployment
Reduces risk

Move attribute management for mailboxes, groups and contacts

Cloud-based management (IsExchangeCloudManaged) covers mailboxes only. Mail-enabled groups and mail contacts need a source of authority transfer, or you lose the ability to edit them once Exchange is gone.

What to do

Inventory directory-synchronised mailboxes, groups and contacts first. Switch mailboxes to cloud management and plan group and contact SOA transfers before any cleanup.

Microsoft Learn: Remove the last Exchange server in a hybrid deployment
Reduces risk

Do not uninstall if you rely on the Management Tools

Microsoft says the uninstall removes the containers and groups the Exchange Management Tools approach needs. The two paths do not mix.

What to do

Pick one route: cloud-based attribute management and a full uninstall, or the Management Tools with the server shut down but not uninstalled.

Microsoft Learn: Manage hybrid recipients with the Management Tools
Saves time

Hidden mailboxes block the uninstall

Arbitration, audit log, archive and public folder mailboxes, and offline address books generated by system mailboxes, stop setup. Finding them on the day adds hours.

What to do

Run the five Get-Mailbox checks in the Exchange Management Shell with Set-ADServerSettings -ViewEntireForest:$true early, and migrate public folders well before the removal date.

Microsoft Learn: Remove the last Exchange server in a hybrid deployment
Reduces risk

Turn off centralised mail transport first

If the hybrid outbound connector routes all mail through on-premises, Exchange Online mail flow breaks when the server goes.

What to do

Re-run the Hybrid Configuration Wizard and clear centralised mail transport, or set -RouteAllMessagesViaOnPremises:$False on the hybrid outbound connector, then test outbound mail.

Microsoft Learn: Remove the last Exchange server in a hybrid deployment
User impact

EWS apps fail on a fixed date

Since 1 October 2026, EWS is blocked by default in Exchange Online unless an app is on the allow list, and removed for everyone on 1 April 2027 with no exceptions.

What to do

Inventory apps with EWS permissions now, get Graph dates from each vendor, and use the allow list only as a short bridge.

Microsoft Tech Community: Exchange Online EWS, your time is almost up
Cost lever

Licensing drives the cost of staying on-premises

Subscription Edition licensing depends on server licences, client access licences and whether Software Assurance or a subscription is required. That ongoing cost often decides between staying on-premises and moving every mailbox.

What to do

Count the mailboxes that truly must stay on-premises and get a written licensing quote for exactly that number before you plan an upgrade.

Choose your approach

Move to Exchange Online and remove Exchange

Medium effort

Best for: Most organisations, including hybrid tenants that kept a server only to manage synced users

  • No on-premises Exchange left to patch or protect
  • Cloud-based attribute management means no server is needed to edit synced mailboxes
  • Microsoft documents the full removal procedure
  • Every mailbox, archive, public folder and system mailbox must move first
  • Relay devices and apps must be re-pointed before the uninstall
  • Groups and contacts need a source of authority transfer
Remove the last server →

Upgrade to Exchange Server Subscription Edition

High effort

Best for: Organisations with mailboxes that must stay on-premises

  • The supported on-premises version, so security updates continue
  • Mailboxes stay on your own servers
  • Ongoing licensing; get a written quote for the mailboxes that must stay
  • You still run, patch and protect the servers
  • Apps that use EWS against Exchange Online still need Microsoft Graph
What to check →

Move mail to another platform

High effort

Best for: Organisations already planning to leave Microsoft for mail, for example to Google Workspace

  • Removes Exchange entirely as part of a wider platform change
  • A full migration project: mailboxes, calendars, relay, DNS and user training
  • Check the target's migration tooling supports your Exchange version
  • Hybrid clean-up and the uninstall steps still apply to the old server
Google Workspace guides →

Keep a server only for relay or management

Low effort

Best for: A short stop-gap while relay devices and recipient management move to the cloud

  • Buys time to re-point devices and apps safely
  • Exchange 2016 and 2019 receive no security updates, so the risk grows every month
  • Does not remove the work, only delays it
Plan relay first →
Our advice

Move to Exchange Online and remove the last server unless a named group of mailboxes truly must stay on-premises. If they must, size Subscription Edition for that group only. Treat keeping an old server as a stop-gap with a removal date, never as the plan.

Leaving it running is not an option. An internet-facing Exchange server without security updates is a high-value target. If you must keep one for now, restrict inbound access and plan its removal.
Finish safely

How do you check it worked, or roll back?

Validation checks

Run these before you uninstall the last server and again afterwards. They cover the move to Exchange Online; for a Subscription Edition upgrade, follow Microsoft's upgrade checks instead. Record the results in the data validation report.

CheckHow to checkWhat good looks like
Nothing is left on-premises

In the Exchange Management Shell run Set-ADServerSettings -ViewEntireForest:$true, then Get-Mailbox with no switch and with -Archive, -PublicFolder, -Arbitration and -AuditLog.

All five Get-Mailbox commands return nothing.
Synced mailboxes are cloud managed

In Exchange Online PowerShell run Get-Mailbox -ResultSize Unlimited | Where-Object { $_.IsDirSynced -eq $true -and $_.IsExchangeCloudManaged -eq $false }.

The command returns nothing, and an attribute changed with Set-Mailbox keeps its value after the next sync cycle.
Mail flows without the server

Run Resolve-DnsName -Name contoso.com -Type MX and Get-OutboundConnector | Format-List Name,RouteAllMessagesViaOnPremises. Send mail in and out, then check the Exchange admin center > Mail flow > Message trace.

MX returns the mail.protection.outlook.com host, RouteAllMessagesViaOnPremises is False, and both test messages show Delivered.
Autodiscover points at Exchange Online

Run Resolve-DnsName -Name autodiscover.contoso.com -Type CNAME and the Outlook Autodiscover test at https://testconnectivity.microsoft.com for a cloud mailbox.

The CNAME returns autodiscover.outlook.com and the test passes.
Every relay sender works

For each device and app on the relay inventory, send a test message with its new method, then find it in Message trace.

Every row on the inventory has a Delivered test result, including messages to external recipients where the device needs them.
Hybrid leftovers are gone

In Exchange Online PowerShell run Get-OnPremisesOrganization, Get-MigrationEndpoint, Get-IntraOrganizationConnector and Get-InboundConnector.

No on-premises organisation, migration endpoint or HybridWizard connectors remain.
EWS apps are ready for 1 April 2027

Run Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs and compare with the EWS app list.

Only apps still waiting on a Graph release are allowed, and each has a vendor date before 1 April 2027.
Rollback plan

Roll back if

  • Inbound or outbound mail is not delivered after centralised mail transport is turned off
  • A relay device or app that the business depends on cannot send with its new method
  • Edits to synced mailboxes are lost or cannot be made after moving attribute management to the cloud
  • A business-critical app stops working after its ID is removed from the EWS allow list
  • A mailbox, public folder or system mailbox is found still on-premises

Point of no return

Uninstalling Exchange. It removes every receive connector and the containers and groups the Exchange Management Tools approach needs, and it cannot be undone. Going back means installing a new, supported Exchange server and re-running the Hybrid Configuration Wizard. Every step before the uninstall can be reversed, so validate fully first.

  1. 1

    Turn centralised mail transport back on

    Where: Exchange Online PowerShell on your admin PC, or the Hybrid Configuration Wizard on the Exchange server

    Route outbound mail through on-premises again, or re-run the wizard and select Enable Centralized Mail Transport.

    Set-OutboundConnector -Identity "<Hybrid Outbound Connector name>" -RouteAllMessagesViaOnPremises:$True
    Get-OutboundConnector | Format-List Name,RouteAllMessagesViaOnPremises
    You should see: RouteAllMessagesViaOnPremises shows True, and a test message from a cloud mailbox shows Delivered in Message trace.
  2. 2

    Put failing relay senders back on Exchange

    Where: Each device's or app's mail settings, then the Exchange Management Shell

    Point the device back at the Exchange server's relay address while you fix its new method. This only works while the receive connectors still exist.

    Get-ReceiveConnector | Where-Object { $_.PermissionGroups -match 'AnonymousUsers' } | Format-Table Name, RemoteIPRanges -AutoSize
    You should see: The device's IP is in a connector's RemoteIPRanges, and its test message is delivered.
  3. 3

    Return a mailbox to on-premises management

    Where: Exchange Online PowerShell, signed in interactively as an Exchange Administrator, Hybrid Identity Administrator or Global Administrator

    Save the cloud values you need with Get-Mailbox and Get-User first. Microsoft says the next sync replaces the cloud Exchange attributes with the on-premises values, so cloud-only edits are lost.

    Set-Mailbox -Identity user@contoso.com -IsExchangeCloudManaged $false
    Get-Mailbox -Identity user@contoso.com | Format-List Identity,IsExchangeCloudManaged
    You should see: IsExchangeCloudManaged shows False, and after the next sync cycle the mailbox can be edited on-premises again.
  4. 4

    Allow an EWS app again, temporarily

    Where: Exchange Online PowerShell on your admin PC

    Add the app ID back to the tenant EWSAllowedAppIDs list, as in find apps that still use EWS. Setting the list replaces it, so include every app you still need, and allow up to 24 hours. This stops working on 1 April 2027 whatever you set.

    You should see: EwsAllowedAppIDs lists the app again and the app works for its users.
  5. 5

    Recreate hybrid if you already removed it

    Where: Hybrid Configuration Wizard (https://aka.ms/HybridWizard) on the Exchange server

    If the hybrid configuration or connectors were removed and you need coexistence back, re-run the wizard (see run the Hybrid Configuration Wizard) with your original choices.

    You should see: Get-OrganizationRelationship and Get-OutboundConnector in Exchange Online show the hybrid objects again, and cross-premises mail flows.
  6. 6

    Record the cause and reset the removal date

    Where: Your risk register and the rollback plan

    Write down what failed and what must change, keep the server patched as far as possible and restricted from the internet, and set a new removal date.

    You should see: A dated entry with the cause, owner and new removal date.

Agree the triggers and who decides before you uninstall. Use the rollback plan template.

FAQ

Questions admins ask

Can I just switch off the last Exchange server?

Microsoft's documented path is to move attribute management to the cloud, clean up hybrid and uninstall. Switching off without uninstalling leaves configuration behind, and relay stops working either way.

Do I still need Exchange to manage users synced from Active Directory?

Not if you use cloud-based management of Exchange attributes for mailboxes, and source of authority transfer for groups and contacts.

Will the extended security updates be extended again?

Microsoft has said there will be no further extension for Exchange 2016 and 2019.

What happens to apps using EWS after 1 April 2027?

They stop working with Exchange Online. They need to use Microsoft Graph instead.