In a DAG Environment, where you have got multiple exchange servers in a DAG it’s important to know the exact number of databases on each server to make sure no server has more load than the other and all databases are equally balanced across the servers in DAG.
Following command will give you the number of mounted databases on a specific server in a DAG. Please replace exchsrv1 with the correct server name in your environment before executing this command.
(get-mailboxdatabasecopystatus -server exchsrv1 | ?{$_.status -like “mounted”}).count
Leave a Reply