Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Sum deleted items

$
0
0

Hi there

im trying to run a small one liner that will sum the total deleted items folder for a group of users on adatabase so something like this:

Get-Mailbox -Database db1 |Get-MailboxFolderStatistics -FolderScope deleteditems |Where {$_.FolderPath -eq "/Deleted Items"} | select-Object {$_.FolderAndSubFolderSize.ToMb()} |Measure-Object

but I only get the count not the sum?

what am I missing here?

Thanks

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles