?
Solved

Get Mailbox Sizes

Posted on 2014-11-05
3
Medium Priority
?
275 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

765 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