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.
