Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Nov 15th, 2012  |  syntax: Power Shell  |  size: 0.43 KB  |  views: 231  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. param([string]$user)
  2. if ($user -eq ""){$user = read-host "Please enter user"}
  3. get-mailbox $user |Get-MailboxFolderStatistics | where {$_.ItemsInFolder -gt 0} |sort-object -descending foldersize | ft folderpath, itemsinfolder, @{label="Folder Size(MB)";expression={$_.FolderSize.ToMB()}} -autosize
  4. get-mailboxstatistics $user | ft DisplayName,@{label= "Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount, DatabaseName
clone this paste RAW Paste Data