title: Get Sum of Exchange Mailbox Statistics
body: <p>I'm trying to get the sum of the <code>TotalItemSize</code> for an Exchange database using the command</p>
  
  <p><code>Get-MailboxStatistics -Database MBX07 | Measure-Object -Sum TotalItemSize</code></p>
  
  <p>The command works perfectly fine in the Windows PowerShell ISE but if I run it in an Exchange EMS (both are on my local machine) I get errors for every mailbox in the database that say</p>
  
  <blockquote>
    <p>Measure-Object : Input object "8.518 MB (8,932,049 bytes)" is not
    numeric.</p>
  </blockquote>
  
  <p>The output in the ISE where the command works looks like</p>
  
  <pre><code>Count    : 174
  Average  : 
  Sum      : 203481256406
  Maximum  : 
  Minimum  : 
  Property : TotalItemSize
  </code></pre>
  
  <p>It's an Exchange 2010 SP1 server running on Windows Server 2008 R2 and I'm running Windows 8.1 64bit</p>
  
  <p>Any help is greatly appreciated</p>