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?
LVL 2
Muhammad AsifSenior Solutions ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hasin Ahmed ChoudharyExchange AdministratorCommented:
Use this cmd to remove the server from DAG.

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

Ref: https://technet.microsoft.com/en-us/library/dd297956(v=exchg.160).aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
0
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi,

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?
0
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Database Availability Group (DAG)

From novice to tech pro — start learning today.