Solved

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

Posted on 2010-11-18
5
755 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this video we show how to create a Shared Mailbox 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 >> Sha…
In this video we show how to create an email address policy 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…

708 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