TsooRaD

Madness from the other side

  •  

    February 2012
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • 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.

Posted in e2k7, Exch | Leave a Comment »

ws08 hibernate

Posted by tsoorad on January 30, 2008

Believe it or not, the ws08 server comes with hibernation turned on.

And you cannot turn it off from the gui.

Turn it off from the CLI 

Powercfg /hibernate off

I understand that maybe working with UPS units might be a good option to use hibernate – it may come back to life faster and with no service startup issues.

But what if you have a server with 16GB RAM and all of a sudden you have this hibernate.fil sitting on the root of C?

Wow. 

Posted in WS08 | 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 »

clapton

Posted by tsoorad on January 29, 2008

Cream – Crossroads.  Damn can he play.

Posted in Eh?, muzack | Leave a Comment »

Miscellaneous Bike Shots

Posted by tsoorad on January 29, 2008

For instance, this is one of my interests…

http://picasaweb.google.com/skrote/MiscellaneousBikeShots

Posted in Eh? | Tagged: | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.