Link to home
Start Free TrialLog in
Avatar of Albert Widjaja
Albert WidjajaFlag for Australia

asked on

How to show the top 10 biggest Exchange Server 2010 mailbox capacity using Powershell ?

Hi People,

Can anyone here please assist me in modifying the script below to get the number of mailbox size in Gigabytes ?

Get-MailboxServer | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label="Size(GB)"; Expression={$_.TotalItemSize.Value.ToGB()}}, Database, LastLogoffTime, DeletedItemCount, DisconnectDate | Select -First 13 | ft -auto

because when I executed the script above, it returns blank.

Thanks in advance.
Avatar of vSolutionsIT
vSolutionsIT
Flag of India image

Avatar of Albert Widjaja

ASKER

hi, the Size in GB doesn't show up still ?
ASKER CERTIFIED SOLUTION
Avatar of Gareth Gudger
Gareth Gudger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My exchange servers are two stand alone mailbox servers, so there is no cluster name.
My lab is a standalone 2010 SP1 box. That command should work for you on SP2. Replace, YOURSERVERNAME with the name of your Exchange server.
Thanks !