Solved

Powershell Exchange 2010 mailbox size by OU

Posted on 2014-02-24
4
492 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 18

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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
how to add IIS SMTP to handle application/Scanner relays into office 365.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now