Solved

Powershell Exchange 2010 mailbox size by OU

Posted on 2014-02-24
4
508 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
[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
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

In-place Upgrading Dirsync to Azure AD Connect
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In this video we show how to create a Contact 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 >> Contact ta…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

710 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