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
techgeniousAsked:
Who is Participating?
 
techgeniousAuthor Commented:
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?
0
 
techgeniousAuthor Commented:
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?
0
 
techgeniousAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.