Link to home
Start Free TrialLog in
Avatar of techgenious
techgeniousFlag for United States of America

asked on

Exchange 2007 Get Mailbox Sizes in GB

I have this command:

Get-MailboxStatistics | Sort-Object TotalitemSize -Descending | ft DisplayName, TotalItemSize

How do I edit this to give me the total Item size in GB?

Can someone advise me of this.
thanks
ASKER CERTIFIED SOLUTION
Avatar of Magnus Bergdahl
Magnus Bergdahl
Flag of Sweden 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
Avatar of techgenious

ASKER

This is what I got so far:

Get-MailboxStatistics | Sort-Ojbect TotalItemSize -Descending | fl DisplayName,@{$_.TotalItemSize.Value.ToGB()}

output i get:

>>

does anyone know what I'm doing wrong?
This one gives me an error:
Get-MailboxStatistics | Sort-Ojbect TotalItemSize -Descending | fl DisplayName,@expression={$_.TotalItemSize.Value.ToGB()}

Don't know what I'm doing wrong?