Exchange 2016 – Remove a mailbox server from a DAG using PowerShell

I am working on an Exchange 2016 environment in a lab (using a SureBackup job in Veeam Backup & Replication) and not all of the servers are present in the lab.  Therefore, I need to remove one of the mailbox servers from a DAG in order to establish quorum and successfully mount a database.  This is easy enough using the Remove-DatabaseAvailabilityGroupServer – here is an example:

Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer ExchangeServer01 -ConfigurationOnly

Note: If you don’t know the name of the DAG you can use the Get-DatabaseAvailabilityGroup cmdlet to return a list

[BlogBookmark] [Blogsvine] [] [Digg] [Facebook] [Furl] [Google] [LinkedIn] [MySpace] [Reddit] [Slashdot] [StumbleUpon] [Twitter] [Windows Live] [Yahoo!] [Email]