Avatar of bjennings
bjennings

asked on 

Exchange 2010 - View all users deleted items folder

Hello Everyone,

I want to find out everyone's "deleted Items" folder size in exchange 2010.  When I  run the following powershell command

Get-Mailbox | Get-MailboxStatistics | sort TotalDeletedItemSize -descending | ft DisplayName,TotalDeletedItemSize, FolderPath > c:\deleteditems.csv

I get a list of their "deletions" folder and not "deleted items" folder.

Does anyone know the powershell command to view the size of everyone's "deleted items" in exchange 2010?

Thanks,

Bill
ExchangePowershell

Avatar of undefined
Last Comment
bjennings
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

Hi

To export you need to change the "ft" to "Select-Object" afaik.
Try this

Get-Mailbox | Get-MailboxStatistics | sort TotalDeletedItemSize | Select-object DisplayName,TotalDeletedItemSize | export-csv c:\deleteditems.csv
Avatar of bjennings
bjennings

ASKER

Hello Patricksr1972,

Thanks for the suggestion, but it did not work.

When I run the following command:

Get-MailboxFolderStatistics -id  testuser@acme.com| Sort-Object
FolderSize -Descending | FT  folderpath, foldersize, ItemsinFolder -autosize

I get the following result

FolderPath                     FolderSize                      ItemsInFolder
----------                     ----------                      -------------
/Deleted Items              5.786 GB                          10000
/Sent Items                    2.936 GB                             40000
/Inbox/Test                    267.7 MB                               1050

When I run the command you gave me
Get-Mailbox | Get-MailboxStatistics | sort TotalDeletedItemSize | Select-object DisplayName,TotalDeletedItemSize | export-csv c:\deleteditems.csv

I get the following result for the same user

Test User      59.56 MB

I am trying to find the size of all "delete Items" folder for everyone in the company.

Thanks,

Bill
Avatar of FOX
FOX
Flag of United States of America image

Are you trying to get the size of the  deleted items folder  per user or the total deleted items size of the whole company?
ASKER CERTIFIED SOLUTION
Avatar of Minecraft_ Enderman
Minecraft_ Enderman

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of bjennings
bjennings

ASKER

It worked!  Thanks so much!
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo