TsooRaD

Madness from the other side

  •  

    June 2012
    M T W T F S S
    « Jan    
     123
    45678910
    11121314151617
    18192021222324
    252627282930  
  • Top Posts

    • None

Archive for the ‘e2k7’ Category

Exchange 2007

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.

Posted in e2k7, Exch | Leave a Comment »

E2k7 Powershell commands 1

Posted by tsoorad on January 30, 2008

 display mailbox stats by name, item count, total size, host server

 I get asked how to view simple stats in Exchange 2007 – like which are the biggest mailboxes? Or, who has the greatest number of items.

Here are a few powershell commands you can use.   

Get-MailboxServer | Get-MailboxStatistics | select displayname,itemcount,totalitemsize | ConvertTo-HTML | Out-File C:\Test.htm 

get-mailbox | get-mailboxstatistics | FT displayname, itemcount, totalitemsize, servername 

get-mailbox | get-mailboxstatistics | select-object displayname,itemcount,totalitemsize | export-csv c:\mailboxsurvey2.csv 

get-mailbox jweber | get-mailboxstatistics | select-object displayname, itemcount, totalitemsize, lastloggedonuser, lastlogontime, lastlogofftime, servername, databasename | export-csv c:\exchangereports\userstats.csv
 

Posted in e2k7 | Tagged: | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.