Friday, 11 March 2011 00:44

Getting Mailbox size of users in Microsoft Exchange 2010 PowerShell

Written by
Rate this item
(3 votes)

The following article explains how we can get mail box size of particular user or all users from Microsoft Exchange Server 2010 using PowerShell commands. In previous versions of Exchange, we could view the mail box size from the Exchange console. Microsoft has added a new, powerful command line shell called PowerShell which was developed for System administrators to easily configure and maintain Windows.

 

The following command lines can be used to retrieve user mailbox size so that administrators can monitor the size of the mailbox.

To get specific user's mailbox size: 'Get-MailboxStatistics -Identity "domain\username"

Windows PowerShell Commands- Get-MailboxStatistics

 

To format the result of the previous command by using Display name, Total Size, Total Item Count, Storage Limist Status use the command: 'Get-MailboxStatistics -Identity "domain\username" |ft DisplayName, TotaltemSize, ItemCount, StorageLimitStatus'

 

To Get details of the Database in your Exchange Server: 'Get-MailboxStatisticsDatabse'

Windows PowerShell Commands- Get-MailboxStatistics

 

To Get mailbox size of all users in a database:

'Get-MailboxStatistics -Database "databasename"'

Windows PowerShell Commands- Get-MailboxStatistics

 

Format the result:

'Get-MailboxStatistics -Database "databasename" |ft DisplayName, TotaltemSize, StorageLimitStatus'

Windows PowerShell Commands- Get-MailboxStatistics

 

There are so much more we can do with PowerShell! To get help on any commands in PowerShell, simply type 'Get-Help <cmdlet name>'

For e.g. 'Get-Help Get -MailboxStatistics'

 

Got a question or suggestion? Post it in the comments or email me at This email address is being protected from spambots. You need JavaScript enabled to view it.  {jcomments on}This email address is being protected from spambots. You need JavaScript enabled to view it.?cc=This email address is being protected from spambots. You need JavaScript enabled to view it.&subject=Comments/%20Feedback">

Read 19352 times Last modified on Thursday, 18 August 2011 19:44

Comments   

 
# Moazzam 2011-08-18 12:24
in all commands please update command with TotlaItemSize to TotalItemSize

Thanks.
 
 
# aneesh 2011-08-18 19:44
Quoting Moazzam:
in all commands please update command with TotlaItemSize to TotalItemSize

Thanks.

Hi Moazzam,

Thank you very much for highlighting that typo. I've corrected it.

Hope you found it useful.
Cheers!
-aneesh
 
Tuesday the 25th. ©Sarayoo.info 2012. Reproduction without permission is not permitted. All rights reserved.
Copyright 2012

©

Joomla template poker