Query on Exchange 2016

Rising Flight 5,456 Reputation points
2025-09-14T01:33:24.91+00:00

Hi All

I have upgraded from Exchange 2016 to Exchange 2019. I had three Exchange 2016 servers hosted on Azure, and I successfully uninstalled Exchange 2016 from these three VMs. My environment is now fully running on Exchange 2019.

I would like to completely delete the Exchange 2016 VMs from Azure, including their computer objects and DNS entries. However, I noticed that the Exchange 2016 DAG computer object was not deleted. Can I remove it manually, or is it expected behavior that the DAG computer object is not removed automatically?

Before deleting the Exchange 2016 computer objects and DNS entries, is there anything I should check? Please guide me.

Exchange | Exchange Server | Management
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Austin-H 4,390 Reputation points Microsoft External Staff Moderator
    2025-09-14T08:53:16.74+00:00

    Hi @Rising Flight

    Thank you for posting question to Microsoft Q&A

    Yes, it's expected behavior that the DAG computer object isn't automatically deleted, and you must remove it manually. Before doing so, you need to ensure the DAG object is empty, as the uninstallation process doesn't remove the servers from the DAG's configuration in Active Directory. Open the Exchange Management Shell on an Exchange 2019 server and run the following commands. First, force the removal of each old server from the DAG configuration (repeat for each of the three old servers). Then, remove the DAG object itself. 

    Consider using these two commands Exchange PowerShell.

    Run this command for each of your three old Exchange 2016 servers

    Remove-DatabaseAvailabilityGroupServer -Identity Exchange2016Name -MailboxServer OldNameServerExchange2016 -ConfigurationOnly
    

    After removing all members, delete the DAG object

    Remove-DatabaseAvailabilityGroup -Identity Exchange2016Name
    

     After successfully removing the DAG, you can proceed with the final cleanup. Double-check that all client access URLs, connectors, and mail flow are handled exclusively by your Exchange 2019 servers. Once confirmed, you can safely delete the old computer objects from "Active Directory Users and Computers" and remove the corresponding DNS records from your DNS server. The final step is to delete the decommissioned virtual machines from the Azure portal.
    Reference: https://learn.microsoft.com/en-us/exchange/high-availability/manage-ha/remove-dags

    Hope this helps. Please let me know if you have any further questions.


    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

  2. Rising Flight 5,456 Reputation points
    2025-09-14T10:43:27.2733333+00:00

    Before uninstalling Exchange 2016, I executed the following commands:

    Remove-DatabaseAvailabilityGroupServer -Identity Ex2016DAG -MailboxServer exch2016srv01 -ConfigurationOnly:$true
    Remove-DatabaseAvailabilityGroupServer -Identity Ex2016DAG -MailboxServer exch2016srv02 -ConfigurationOnly:$true
    Remove-DatabaseAvailabilityGroupServer -Identity Ex2016DAG -MailboxServer exch2016srv03 -ConfigurationOnly:$true
    
    

    I no longer have Exchange 2016. From the Exchange 2019 Management Shell, can I run the following command, and will it work?

    Remove-DatabaseAvailabilityGroup -Identity Ex2016DAG
    
    

    Note: I already deleted Ex2016DAG from the GUI i.e from exchange admin center before uninstalling Exchange 2016.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.