Solved

Get Mailbox Sizes

Posted on 2014-11-05
3
248 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
ID: 40425753
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
ID: 40426809
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
ID: 40434604
The included scripts I used resolved the question.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

828 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