Storage Groups

Posted on 2013-01-02
Medium Priority
Last Modified: 2013-04-29

I am trying to export to CVS all mailboxes to include

Last time someone logged into mailbox
What storage group they are part off
Total mailbox size per user

I ran the following script in exchange shell running on Exchange 2007 Sp1

Get-MailboxStatistics -Database "Mailbox Database" | Select DisplayName, TotalItemSize, StorageGroupName,StorageLimitStatus,LastLogonTime | Export-CSV c:\mailboxinfo.csv

Results: Only extract one storage group * any particular reason it missed other storage groups.
What is my script missing?
Question by:enclara
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 16

Accepted Solution

Shaik M. Sajid earned 1500 total points
ID: 38738219
Exchange server name: EXC07

Storage group name: SG01

Database name: SG01MB1

Get-MailboxStatistics -Database "Exc07\SG01\SG01MB1" select DisplayName, ItemCount, TotalItemSize export-csv -path e:\Reports\SG1.csv


try this blog

all the best
LVL 49

Expert Comment

ID: 38739427

Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, TotalItemSize, StorageGroupName,StorageLimitStatus,LastLogonTime | Export-CSV c:\mailboxinfo.csv

Open in new window


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
New style of hardware planning for Microsoft Exchange server.
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question