2

I'm looking for a tool (preferably free) that can analyze the usage in an Exchange mailbox similar to "folder size" type tools for file shares. I'd like to be able to see how space is consumed in a mailbox (items, calendar, tasks, etc.) as well as what kind of attachments (doc, xls, mp3, etc.) are present.

Any recommendations?

Kevin Kuphal
  • 9,064
  • 1
  • 34
  • 41

3 Answers3

2

You could definatley write something to get your individual folder sizes (calendar, tasks etc) this in Powershell, im not to sure on the types of attachments though.

You would use the -FolderScope parameter to focus on particualr folder, so for the calendard it would be:

Get-MailboxFolderStatistics -Identity $user -FolderScope "Calendar" 
|select FolderAndSubfolderSize

You could combine a number of these calls to get sizes for all folders.

Sam Cogan
  • 38,158
  • 6
  • 77
  • 113
2

A quick search for scripts that might do what you're talking about turned up a couple of hits:

Both of these are older, but look like they have some potential to be hacked into shape.

The first one looks interesting enough that I think I'll pull it apart and see how it acts against an E2K7 server at a Customer site. (The code looks awful to read and has some spelling errors, but after some prettifying I think it's probably a winner. If nothing else, I'll probably use it as pseudocode to write my own...)

BTW: Any scripts that you find on the 'net that use the \.\BackOfficeStorage mechanism to get to the Exchange store aren't going to work in E2K7.

Evan Anderson
  • 141,071
  • 19
  • 191
  • 328
0

use

Get-MailboxStatistics -Database "mailbox database" | Sort -Property DisplayName | ft DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label="Mailbox Size(MB)"}, itemcount, lastlogontime, lastlogofftime,lastloggedonuseraccount

As a bonus it sorts by displayname

If you don't want to specify database name:

get-mailbox | get-mailboxstatistics | select-object DisplayName,TotalItemSize,StorageLimitStatus,LastLogonTime

Attachment type and size is an interesting question, I'll have to see if that possible without chugging through each message, if you do have to do it per message I'd say it's not worth the effort unless you are looking at some compliance issue (but then I'd say start creating transport rules)

Jim B
  • 23,938
  • 4
  • 35
  • 58