Solved

Get Mailbox Sizes

Posted on 2014-11-05
3
256 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
[X]
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
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

738 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