Avatar of qvfps
qvfps

asked on 

Generate a list of emails in Exchange 2013 deleted more than 90 days agao

I need to view deleted items for a large number of users and possibly remove items deleted more than 90 days ago.   The server in question is an onsite Exchange 2013 server running on  Windows 2008r2.  I was hoping to generate a report for all users and just list any deleted items > 90 days but have been unable to do so.   I did try the get-recoverableitems command but it is unrecognized on the server.

Is their another way to get this information?
ExchangeEmail ServersWindows OS

Avatar of undefined
Last Comment
David Favor
Avatar of timgreen7077
timgreen7077

The problem with that is logs are kept for 30 days by default, and actual deleted mail items are kept for 14 days by default, do if all the default options are used then there is no way to retrieve that information. You will need to review the retention policies on the mailbox DBs and see how long mail is retained after being deleted but by default it's 14 days, and the logs which doesn't show anything about deleted items are 30 days by default. Possible you may be out of luck on that request.
Avatar of David Favor
David Favor
Flag of United States of America image

Maybe what you're taking about is just running the IMAP EXPUNGE operation, which physically removes deleted files.

To do this, you'll just write some simple code to connect to your IMAP server using some sort of system admin privilege, walk through all accounts + all folders + issue an EXPUNGE.

Some mail servers allow a non-standard recursive EXPUNGE in all folders for a given user.

You'll have to dig into the depths of full IMAP syntax Exchange supports.

Note: Exchange docs contain long discussions about setting retention policy. There is no message of how to set any type of EXPUNGE policy.
Avatar of qvfps
qvfps

ASKER

The original mail policy was to never remove items from deleted items.  Lots of users deleted mail from their mailbox but never removed it from Deleted items.  They have recently requested a change to the policy but want to see how much is actually out there and a way to verify that the new policy is working.
SOLUTION
Avatar of timgreen7077
timgreen7077

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 qvfps
qvfps

ASKER

Thanks for the suggestion but I have already used Get-MailboxFolderStatistics to generate a report for all mailboxes showing the size of each folder but that wasn't what they were looking for.   I need to list deleted items by user by date if possible.
Avatar of timgreen7077
timgreen7077

Not possible.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

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.
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