TsooRaD

Madness from the other side

  •  

    January 2008
    M T W T F S S
         
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Top Posts

    • None

list email users (E2k7)

Posted by tsoorad on January 30, 2008

<disclaimer – this is not my work – I horked it from somewhere, I am just sharing it>

Do you have a lot of users? Do you wish you could list them by size, name, number of items?

Get-MailboxStatistics | sort-object -descending totalItemSize | select -first 5 | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount, lastlogontime

Change the “select -first 5″ to whatever number you like.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>