Solved

Powershell Exchange 2010 mailbox size by OU

Posted on 2014-02-24
4
507 Views
Last Modified: 2014-04-17
Is there a way I can get the total mailbox size by OU automated. I have like 90 OU's and listing them can be a pain.

get-mailbox -OrganizationalUnit "OU=Managememt,OU=Staff,DC=company,DC=co,DC=uk" | Get-MailboxStatistics | Select @{Name="Size";Expression={$_.TotalItemSize.Value.ToMB()}} |
0
Comment
Question by:techdrive
4 Comments
 
LVL 9

Expert Comment

by:Sean
ID: 39883697
This should do it, you may need to output it to a csv.

foreach ($i in (Get-ADOrganizationalUnit -result unlimited)) { get-mailbox -OrganizationalUnit $i | Select @{Name="Size";Expression={$_.TotalItemSize.Value.ToMB()}}}
0
 
LVL 19

Accepted Solution

by:
suriyaehnop earned 500 total points
ID: 39884532
$Mailboxes = Get-Mailbox -OrganizationalUnit "OU=Managememt,OU=Staff,DC=company,DC=co,DC=uk"

Foreach ($Mbx in $Mailboxes){

Get-MailboxStatistics -Identity $mbx.alias | Select @{Name="Size";Expression={$_.TotalItemSize.Value.ToMB()}}
} 

Open in new window

0
 
LVL 5

Expert Comment

by:Pankaj_401
ID: 39885012
Hi Techdrive,
Any update from above suggested cmdlets ?
Moreover, you can have check this link also (http://www.exchangereports.net/) to get auto emails of mailbox size reports with granular level filter option.
0
 

Author Comment

by:techdrive
ID: 39885758
I like suriyaehnops post going to try it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
In this video we show how to create a Distribution Group 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 Recipients >>…
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…

756 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