How to remove dead server from DAG?

We have a DAG with 3 Exchange 2016 servers.' However, one server is dead as it has been hit by ransomeware and we have shutdown the server.

Question:  Now we want to remove the dead/shutdown server from DAG. Can you please let me know the best way to remove it cleanly from DAG and Exchange environment?
Muhammad AsifSenior Solutions ArchitectAsked:
Who is Participating?
Hasin Ahmed ChoudharyExchange AdministratorCommented:
Use this cmd to remove the server from DAG.

Remove-DatabaseAvailabilityGroupServer -Identity DAG2 -MailboxServer <server name> -ConfigurationOnly

Hasin Ahmed ChoudharyExchange AdministratorCommented:
Once done successfully, make sure that server is never joined back to the domain.  If it is VM, simply delete it.
If physical and want tore use, simply rebuild the machine with another name.
Muhammad AsifSenior Solutions ArchitectAuthor Commented:

Thanks for providing me the detais for removing the server from the DAG. Can you please also guide how we can remove dead server from Exchange environment as well?
Hasin Ahmed ChoudharyExchange AdministratorCommented:
Few points to add to remove a step from DAG.
1) Verify all arbitration mailboxes are on database mounted on live servers.
1)You will have to remove mailbox database copies too from that dead server and use above cmd to remove it from dag.

Once a server is removed from DAG, you can use below steps:

Type in the command “adsiedit.msc” et then press “OK”
Right click on the console then “Connect to:”
In the connexion dialog select “Well known Naming Context”
In the drop down menu select “Configuration”
Explode “CN=Configuration [domain]\CN=Services\CN=Microsoft Exchange\CN=[organization]\CN=Administrative Groups\CN=Servers
Right click on the dead server and pick “Delete”

If you have any individual database on that dead server, you may want to delete them too.
Navigate to “CN=Configuration [domain]\CN=Services\CN=Microsoft Exchange\CN=[organization]\CN=Administrative Groups\CN=Databases”
Explode each item to find which one is related to the old server, then delete it as well.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.