The Exchange development group provides several scripts in the installation kit that are of interest for DAG management, some of which we have already encountered earlier in this chapter. You can find the scripts in the Bin\Scripts directory.
Further documentation about command-line switches and how to run the monitoring scripts on a continuous basis is available on TechNet at http://technet.microsoft.com/en-us/library/dd351258.aspx.
The remaining scripts are:
RedistributeActiveDatabases.ps1: This script is provided in Exchange 2010 SP1 to perform automatic rebalance of a DAG. For example, if you run it with the –BalanceDbsByActivationPreference parameter, the script attempts to balance databases by activation ...