We help IT Professionals succeed at work.

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

qvfps
qvfps asked
on
94 Views
Last Modified: 2019-03-26
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?
Comment
Watch Question

timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
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.
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

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

Author

Commented:
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.
timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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.
timgreen7077Exchange Engineer
CERTIFIED EXPERT
Distinguished Expert 2018

Commented:
Not possible.
Fractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.