Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

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 6937

Trending Articles