Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Require assistance in Powershell script to get Mailbox count database wise with server name in Exchange 2010.

$
0
0

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



Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>