Exchange puts a DAG node into maintenance

Scripts to run on one of the DAG nodes.

Script locations:

  • Exchange 2010 : C:\Program Files\Microsoft\Exchange Server\V14\Scripts
  • Exchange 2013/2016 : C:\Program Files\Microsoft\Exchange Server\V15\Scripts

Open a powershell window.

Navigate to the script folder:

<#
Exchange 2010 : C:\Program Files\Microsoft\Exchange Server\V14\Scripts
Exchange 2013/2016 : C:\Program Files\Microsoft\Exchange Server\V15\Scripts
#>
cd "C:\Program Files\Microsoft\Exchange Server\Vxx\Scripts"

Call the script for maintenance:

.\StartDagServerMaintenance.ps1 –serverName "SERVER-NAME"

To take the node out of mode now, you need to call the following script:

.\StopDagServerMaintenance.ps1 –serverName “SERVER-NAME”

During maintenance, the script transfers all active databases to another node of the DAG and blocks the copying of the databases.

Romain Drouche
Romain Drouche
System Architect | MCSE: Core Infrastructure
IT infrastructure expert with over 15 years of field experience. Currently a Systems and Networks Project Manager and Information Systems Security (ISS) expert, I use my expertise to ensure the reliability and security of technological environments.

Leave a Comment