Total users per storage group

With the following script you can create an overview of all users in the different storage groups. Handy to see how many mailboxes you have in your Exchange 2007 environment 😉

write-host -fore yellow “This script will get each mailboxdatabase and the current user count ”
foreach($name in get-mailboxdatabase)
write-output “$name”
$count=(get-mailbox -database $name).count
if($count -eq $null)
{ write-host -fore red “Empty Database, no users”
{ write-output $count }
write-host -fore yellow “The system has a total of “$user=(get-mailbox -resultsize:unlimited).count
write-host -fore red $user


The output of this script you can see below:

13 thoughts on “Total users per storage group”

  1. Pingback:
  2. Pingback: Pragmatic Play
  3. Pingback: bandar togel
  4. Pingback: quik
  5. Pingback: url

Leave a Reply