Solved

How to Show Mailboxes, Their Sizes, in Each Database

Posted on 2010-11-23
5
5,258 Views
Last Modified: 2012-05-10
Good morning experts,
I have an AD domain (2008 R2) with an Exchange 2010 mail server. I am looking for a Powershell script that will show all of the databases, and list the mailboxes and sizes within each database. The output I desire is csv, although print to the screen is ok also.
0
Comment
Question by:CraigMan
  • 3
5 Comments
 
LVL 7

Expert Comment

by:Exchange_Freak
ID: 34199530
Try this

Get-DatabaseStatistics | Export-Csv c:\windows\temp\report.csv -Force -NoType

0
 
LVL 16

Expert Comment

by:Viral Rathod
ID: 34199561
0
 
LVL 16

Expert Comment

by:Viral Rathod
ID: 34199596
Try following power shell command to get the mailboxsize,total item, email address etc....

Get-Mailbox -server EXCH14-MBX1 | Select-Object name,primarysmtpaddress, DisplayName,Database,@{n="Size(MB)";e =
   {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize.value.toMB()}},@{n="Items"; e = {$MBXstat = Get-
    MailboxStatistics $_.name ; $MBXstat.itemcount}}
0
 
LVL 16

Accepted Solution

by:
Viral Rathod earned 500 total points
ID: 34199621
0
 

Author Closing Comment

by:CraigMan
ID: 34201410
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A procedure for exporting installed hotfix details of remote computers using powershell
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 add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

747 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

13 Experts available now in Live!

Get 1:1 Help Now