Hi All,
I have the below script which gives me the Exchange database names with the number of mailboxex in it.
(get-mailboxdatabase) | foreach-object {write-host $_.name (get-mailbox -database $_.name).count}
What i want is i also need the Server name and the DAG name (If possible) in this script so i get the output in the below format
What i get is:
Database name | No of mailboxes in the DB
XXXXX 250
What i want is:
Server name | Database name | No of mailboxes in the DB | DAG name (If possible)
XXXXXX XXXXXXX 250 DAG01
Can any one help me in making this script plz.
Gautam.75801