Exchange 2007 How to check if a storage group has no users?

This might be an easy one but i couldn't figure it out quickly so i figured i would ask.

In Exchange 2007 the console does not present the user mailbox location when you browse through the many storage groups and mail databases.

Is there a way to check if a storage group and/or mail database has any users in it.

The reason why i am asking is because i want to perform some house cleaning and i cannot figure out if any user's mailbox is sitting in the storage groups and mail databases that i am thinking to delete
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

vaworxAuthor Commented:
I just found one way,

I cannot find a way under EMC -=> Server Configuration -=> Mailbox -=> Storage group and mail database view

But i can in fact act the Database Column under:
EMC -=> Recipient Configuration -=> Mailbox -=> View -=> Add/Remove Columns -=> Database -=> Add -=> OK

Is there a way to check under Server Configuration -=> Mailbox; if this is a manual verification process i want to make sure as one can always miss one user sitting on that SG MDB and delete it to later find out that that mailbox is now goners.

Any input would be appreciated. Thanks.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

vaworxAuthor Commented:
Thanks florin_s,

Although the links to the scripts are very useful in other scenarios i was looking for an exact solution to browse a mailstore for user mailboxes on Exchange 2007.

Maybe a script that walks a Storage Group and/or mail database and lists the users if any located in it.
vaworxAuthor Commented:
Hey florin_s

Thanks for the effort, i haven't tried the above scripts yet but i guess i could. You pointed me in the right directoin though by looking into the Exchange Management Shell rather than GUI and so i was able to get the info i needed by the following one liner:

Get-Mailbox -Database  MailboxDatabase
Get-MailboxStatistics -Database MailboxDatabase

In any case i will accept your solution as well and thanks for the quick posts.
glad that I could help :)
All Courses

From novice to tech pro — start learning today.