View Mailbox Size EX2007
how in gods name do i view the size of my users mailbox in exchange 2007.it was so easy in exchange 2003.. im guessing i need to use the command shell in 2007 since i cant seem to find it anywhere in the EMCall i have found so far is get-MailBoxStasticticsbut this only shows me the number of items in a mailbox, i want to know the size...please help!
August 15th, 2007 8:38am

for a single mailbox you can use 'Get-MailboxStatistics | fl' for multiple mailboxes use 'Get-MailboxStatistics | ft Displayname, TotalItemSize'
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2007 11:48am

hi rakem how do i view mailbox size wx2003 for all user? thanks in advance
September 9th, 2007 8:53am

Hi, if you mean in Exchange Server 2003, then by default when you go to mailbox folder or container under Exchange System Management Console, there is a column for mailbox size , the size will be in KB. this will show you the size of the user mailboxes under this mailbox store. but if you have multiple stores, then you need to to query using active directory from the exchange server itself, and customize the columns and add i think "mailbox size" , or something like that. this will gives you the size of all your user's mailboxes under all mailbox stores. is this what you mean ? Regards Alaa
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2007 8:51pm

Hang on a second....this is the ANSWER? I mean yeah it works, but isn't it important to hand your management a report of value? In Bytes...WTF. Has anyone found a valuable way to report? No disrespect to Lasse...I know your just working with what ya got as well. I mean, yeah it works.
October 18th, 2007 5:56pm

You can convert the output from bytes to KB or MB if you like, and sort the result aswell. Get-MailboxStatistics | Sort -Property TotalItemsize -Desc | Format-Table DisplayName, @{expression={$_.TotalItemSize.Value.ToMB()};width=8;label="Mailbox size(MB)"}, ItemCount, LastLogonTime, LastLogoffTime, LastLoggedonUserAccount
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2007 1:44am

How can you output this data to a file? Thanks.
October 19th, 2007 2:31am

with a "> filename.txt" at the end Get-MailboxStatistics | Sort -Property TotalItemsize -Desc | Format-Table DisplayName, @{expression={$_.TotalItemSize.Value.ToMB()};width=8;label="Mailbox size(MB)"}, ItemCount, LastLogonTime, LastLogoffTime, LastLoggedonUserAccount > mailboxsize.txt
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2007 2:40am

Does anyone know if I can a list of Display Names and the size of each users deleted items folder only?
October 29th, 2007 10:31pm

Try get-mailboxfolderstatistics http://technet.microsoft.com/en-us/library/aa996762.aspx
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2007 11:10pm

Hi, this command is very useful! By the way, how can i make the displayname and lastloggedonuseraccount to completely display the content instead of partly? thanks in advance!
October 31st, 2007 10:18am

can i make this as schedule task to run every month?
Free Windows Admin Tool Kit Click here and download it now
October 31st, 2007 10:20am

Save the powershell commands as a .ps1 file (powershell script) and set that in scheduled tasks. As far as the display of the output the format-table command should give you all the control you need. I find this link to be helpful everyday for this sort of stuff: http://technet.microsoft.com/en-us/library/bb123703.aspx
October 31st, 2007 6:33pm

Add the parameter -autosize to format-table Get-MailboxStatistics | Sort -Property TotalItemsize -Desc | Format-Table DisplayName, @{expression={$_.TotalItemSize.Value.ToMB()};width=8;label="Mailbox size(MB)"}, ItemCount, LastLogonTime, LastLogoffTime, LastLoggedonUserAccount -autosize
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2007 9:15pm

Very useful tool, thank you. How can I run this as a batch file in the Power Shell?
August 1st, 2008 4:32pm

create teh powershell script file and then schedule it ot run with a schedule task. http://weblogs.asp.net/steveschofield/archive/2008/01/09/send-email-with-powershell-script-schedule-script-with-windows-task-scheduler.aspx make the script output to a textfile, you can even add the textfileto a mail that gets send in the end of the script.
Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2008 12:32am

Use the below cmd in powershell Get-MailboxStatistics -Server MailboxServer01 where Mailboxserver01 is your exchange server name
August 5th, 2008 4:29pm

Got it. Works like a champ. Thanks.
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2008 3:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics