Solved

Get Mailbox Sizes

Posted on 2014-11-05
3
263 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
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…

717 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