Get-mailboxstatistics Sent items parameter
Hello I am using the script below to get mailbox statistics, of course it bombs out with the Section for the sent items size. I need the parameter to display that information as well. If someone knows the parameter please let me know.
Get-MailboxStatistics | ForEach { New-Object psobject | Add-Member -Passthru NoteProperty Displayname $_.Displayname | Add-Member -Passthru NoteProperty TotalItemSize $_.TotalItemSize.Value.ToMB() | Add-member -Passthru NoteProperty TotalDeleteditemsize $_.TotalDeleteditemsize.Value.toMB() | Add-member -Passthru NoteProperty TotalSentitemsize $_.TotalSentitemsize.Value.toMB() } | Format-Table
Thank you,
June 7th, 2007 5:45pm
Hi, Get-mailboxstatistics does not return SentItemSize value. instead this can be used for the same. get-mailboxfolderstatistics -id es\ramnaniv | where {$_.folderpath -like "/" -or $_.folderpath -like "/inbox" -or $_.folderpath -like "/sent items"} | ft name, @{expression={$_.folderandsubfoldersize.tomb()};label="TotalFolderSize"} -auto But this does not return the Dumpster size for the mailbox as Get-MailboxFolderstatistics does not return dumpster size. Hope this helps someone. Thanks.Vishal Ramnani | MCITP - Exchange 2007 | MCSE Messaging | MCTS - Win 2008 Config
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2009 12:18pm