Idera nSoftware Compellent

Get-MailboxStatistics


posted by Richard Giles
02-27-2009

Downloads: 486
File size: 558 B
Views: 4,164

Embed
Get-MailboxStatistics
  1. # Paul Flaherty 
  2. # http://blogs.flaphead.dns2go.com/archive/2008/11/14/get-mailboxstatistics-with-totalitemsize-in-mb-to-a-csv-file.aspx 
  3. # Create a csv file from Get-MailboxStatistics, but with the TotalItemSize in MB 
  4.  
  5. "DisplayName,TotalItemSize(MB),ItemCount,StorageLimitSize,Database,LegacyDN" | out-file GMS.csv; get-mailbox -resultsize unlimited | Get-MailboxStatistics | foreach{$a = $_.DisplayName;$b=$_.TotalItemSize.Value.ToMB();$c=$_.itemcount;$d=$_.storagelimitstatus;$e=$_.database;$f=$_.legacydn;"$a,$b,$c,$d,$e,$f"} | out-file GMS.csv -Append 

Create a csv file from Get-MailboxStatistics, but with the TotalItemSize in MB.

Attributed To: Paul Flaherty

URL: http://blogs.flaphead.dns2go.com/archive/2008/11/14/get-mailboxstatistics-with-totalitemsize-in-mb-to-a-csv-file.aspx

Copyright 2010 PowerShell.com. All rights reserved.