Solved

how can i get mailbox size for all exchange mailboxes beginning with C

Posted on 2010-11-18
5
773 Views
Last Modified: 2012-05-10
im moving mailboxes to a new storage group
im moving all the mailboxes starting with A one night B the follwoing night and so on
How would i know the size of all the mailboxes starting with A , so i know what size of data i will be moving
0
Comment
Question by:dougdog
5 Comments
 
LVL 9

Accepted Solution

by:
conradie earned 167 total points
ID: 34164648
Here is an article with the syntax of Get-MailboxStatistics . You can run the command and have it sort the output by name, and then just tally the total of those users in Excel.

http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/getting-mailbox-statistics-exchange-2007.html

Here is another:

http://www.petri.co.il/getting-mailbox-sizes-in-powershell.htm

This next article will tell you how to export to a CSV so you can manipulate the results in Excel.

http://exchangeshare.wordpress.com/2008/04/23/emc-where-are-mailbox-total-items-size-kb-columns/

Let us know how you go.
0
 
LVL 17

Assisted Solution

by:OriNetworks
OriNetworks earned 167 total points
ID: 34164733
The following script gets mailbox size but i'm sure you can adapt it to use a filter with get-mailbox

Get-MailboxStatistics -Database “Mailbox Database” | Sort -Property LastLoggedOnUserAccount | Format-Table DisplayName, LastLoggedOnUserAccount, ItemCount, @{expression={$_.totalitemsize.value.ToMB()};label=”Size(MB)”}, LastLogonTime, LastLogoffTime
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 34166918

I'm not at work, so I cannot test this, but something along these lines:
Get-Mailbox A* | Get-MailboxStatistics | Measure-Object TotalItemSize -Sum

Open in new window

HTH

Chris
0
 
LVL 70

Assisted Solution

by:Chris Dent
Chris Dent earned 166 total points
ID: 34166963

I forget the units of the output here, but you can convert the value up. For instance, if the value is in bytes, this would convert it to Gb:

1288490188.8 / 1Gb

Where 1Gb is a shortcut for 1073741824, or 1024 * 1024 * 1024 (Kb, Mb then Gb).

Chris
0
 

Author Closing Comment

by:dougdog
ID: 34290873
thank you
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

786 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