Solved

Get Mailbox Sizes

Posted on 2014-11-05
3
236 Views
Last Modified: 2014-11-11
I'm trying to write a script to get the mailbox sizes of all linked mailboxes in our enviroment.  The issue is that some of the information is available with the get-mailbox command such as recipient type where as mailbox size is retrieved via the get-mailboxstattistics command.

What I want to accomplish is to export a list of name, recipient type, and mailbox size to a csv file.

How can I accomplish this?
0
Comment
Question by:georgedschneider
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Barry Cunney
Comment Utility
Hi George,
Please try something like the following:
Get-MailboxDatabase "Mailbox Database Name" | Get-MailboxStatistics | Export-CSV C:\mailboxes.csv

Open in new window

0
 

Accepted Solution

by:
georgedschneider earned 0 total points
Comment Utility
I used the following scripts to accomplish the mailbox sizes for just linked mailboxes.  The script provided would work fro all mailboxes.

Get-Mailbox -RecipientTypeDetails LinkedMailbox -ResultSize unlimited |Get-MailboxStatistics|select displayname,totalitemsize|Sort-Object Totalitemsize -descending|Export-Csv "C:\Export\LinkedMailboxes.csv"

Get-Mailbox -archive -RecipientTypeDetails LinkedMailbox -ResultSize unlimited |Get-MailboxStatistics -Archive|select displayname,totalitemsize|Sort-Object TotalItemsize -Descending |Export-Csv "C:\Export\LinkedMailboxesArchive.csv"

Open in new window

0
 

Author Closing Comment

by:georgedschneider
Comment Utility
The included scripts I used resolved the question.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now