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 Exch, e2k7 | Leave a Comment »
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 »
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: e2k7 | Leave a Comment »
Posted by tsoorad on January 29, 2008
Cream – Crossroads. Damn can he play.
Posted in Eh?, muzack | Leave a Comment »
Posted by tsoorad on January 29, 2008
Posted in Eh? | Tagged: bikes | Leave a Comment »