ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to remove Exchange Server from your Domain

By Vladan SEGET | Last Updated: October 13, 2021

Shares

Today's post will show how to remove Exchange server from your domain. I'm simulating it on my lab environment where I'm running single Microsoft Exchange 2013 server. For organizations moving to Office 365, the best way to seamlessly migrate, is to go hybrid. First you move all mailboxes and then you decomission your Exchange server. You should keep at least one Exchange server on-premises, according to Microsoft. You'll see it at the end of the post.

But this is a single lab scenario where In my case I'm running single Exchange Server 2013 and I want to perform a complete uninstall from the member server and decommission this server from AD etc……

It's not that simple as even after you think that you have deleted all mailboxes, there are still some left. Also, Exchange Server has many dependencies, it modifies AD schema, even if there is no more mailbox left on the server it's not possible to uninstall that “app” because it tells you that ..

“This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbibration mailboxes.” 

So we'll look at this step by step in order to try to get this done. First we check the list of all databases on this server via

Get-Mailboxdatabase

The output:

How to remove exchange server from a domain - Get-mailboxdatabase

We got the response. Our database's name is 1720591215. Not very sexy, hmm?

Now, if there are any Accounts that have archive enabled, you won't be able to delete those.. Check the image below.

How to remove exchange server from a domain - Get-mailboxdatabase

Quick check on our environment will show us that we have some mailbox left, where one of the mailboxes is the default domain's admin mailbox and the other one some test mailbox…

mailboxes

So quick check of Technet here will tell us that we need to disable the archive on an on-premise mailbox…

You can go through the EAC (Exchange administration console) or through the Shell.

  1. Navigate to Recipients  > Mailboxes.
  2. Select a mailbox.
  3. In the details pane, under In-Place Archive, click Disable.

Disable archive on a mailbox

Done, now that we removed the archiving, let's try to remove those mailboxes. Through the EAC….

Whether the admin mailbox was possible to remove, the default domain account's mailbox wasn't. You know why? (and I'm glad it did throw an error… -:)

The primary difference between deleting and disabling a mailbox is that when you disable a mailbox, the Exchange attributes are removed from the corresponding Active Directory user account, but the user account is retained. When you delete a mailbox, both the Exchange attributes and the Active Directory user account are deleted. This difference also determines your options to reconnect or restore disabled and deleted mailboxes.

What needed to be done is that one needs to disable the account(s), via EAC for example. And and then only it's possible to delete the database…

Through the EAC you select the database > delete.

Remove Exchange Server from domain

Now when we want to uninstall Server Exchange from our member server we have no error message, so we can proceed with a clean removal….

How to remove Exchange server from a domain

Exchange has 14 steps to complete…. quite tedious, but seamless for an admin (if everything goes well… finger crossed -:)….

How to remove exchange server from a domain

Then we have the final screen which asks us to kindly reboot the server…
How to remove Exchange server from a domain

After reboot all is gone. No Exchange Services left…

Quick look to AD, and even there the OU Microsoft Exchange Security Group is gone! It seems that the operation was succesfull…

How to remove Exchange Server from a domain

Exchange Server on-premise was and is not easy to do without special Exchange learning, training and (or) certifications. That's why a lot of admins and organizations prefer to leave those administration tasks and externalize Exchange Server > migrate to Office 365.

Why would you need to decommission Exchange Server?

Yes. Why? Perhaps you want to be free? Perhaps you no longer wants to be locked into Exchange? Or perhaps simply you have your ISP providing you e-mail servicing with your domain and this is sufficient for your organization.

With Microsoft and Exchange Server, in hybrid Exchange configuration (on-prem and Office 365) the recommended practice says to keep at least one Exchange server. Why? (why should you have at least one Exchange server (hybrid) On-premises).

The key here is to understand if the Office 365 objects depend and are synced from the on-premises Active Directory, and if they are you need to have your on-premises Active Directory extended and you need to have a supported tool to edit those objects on-premises.

What's the supported tool? ADSI edit?

No

The Exchange Management Console, the Exchange Administration Center (EAC), and the Exchange Management Shell are the only supported tools that are available to manage Exchange recipients and objects. If you decide to use third-party management tools, it would be at your own risk.

Source link.

What about if I don't have or I don't want to pay for an Exchange server license?

Well, you don't have to (link) if you don't have on-premise mailboxes !!!

Well if the following conditions apply you can request an Exchange Hybrid Server product key, with no additional costs:

  • You have an existing, non-trial,Office 365 Enterprise subscription
  • You currently do not have a licensed Exchange 2013 or Exchange 2010 SP3 server in your on-premises organization.
  • You will not host any on-premises mailboxes on the Exchange 2013 or Exchange 2010 SP3 server on which you apply the Hybrid Edition product key.

 

Sources:

  • Technet disable or delete mailboxes
  • Technet manage in place archives
  • Technet How to and when to decommission your on-premises Exchange servers in a hybrid deployment.
  • MSDN blog – why should you have at least one Exchange server (hybrid) On-premises
Shares
5/5 - (1 vote)

| Filed Under: How To Tagged With: How to remove Exchange Server

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in