×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

deleted items retention

deleted items retention

deleted items retention

(OP)
We have the deleted items retention set on our database to 14 days and for our users to use the database defaults but on some of the users its still showing deleted items earlier than 14 days old....They have the Use Mailbox Database defaults marked within their storage quotas setting on their mailbox as well

Any help would be appreciated

RE: deleted items retention

If you also have the box checked on the database properties that says "Do not delete until a successful backup" or something like that, then deleted items will stay on the server until a successful Exchange-aware backup happens. That could mean years, if your backups are having issues or if your backup software doesn't tell Exchange that it is being backed up.

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
that was not checked any other ideas?

thanks

RE: deleted items retention

(OP)
on some users mailboxes it is working fine, by only having 14 days in the deleted items but for others its going much further back than that

RE: deleted items retention

The items that are past the date are identified during the nightly maintenance cycle. If your database is large and/or you have multiple databases, sometimes it gets to a point where the maintenance cycle never actually finishes, so the deletion of emails is never actually completed/accomplished. If you go to each database and customize the maintenance windows and make sure that they don't overlap, or if you have one big database, if you customize it so that it can run maintenance all day Saturday and Sunday if necessary, that might allow it to complete.

There are events in the event log that show when maintenance starts and finishes, and if the window for maintenance ends before it completes, there will be an event in the log saying that it was interrupted.

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
Where would I go about checking this as we do have multiple databases and one of them is almost a terabyte in size

RE: deleted items retention

Search for these events in the app log:

Those are all start/stop events for the cleanup cycle.

For Source: MSExchangeIS Mailbox Store
Category: General
1206
1207
9531
9535

For Source: ESE
Category: Online Defragmentation

700
701

If you just filter for Source/Category, you may actually have some other relevant event IDs in those categories that show failures. The event IDs I listed here are only for successes.

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
I found 1206 and 1207 which ran this morning at 1:00 AM

1206[ Starting cleanup of items past retention date for Item Recovery on database "Mailbox Database"

1207

Cleanup of items past retention date for Item Recovery is complete for database Mailbox Database
Start: 0 items; 0 Kbytes
End: 0 items; 0 Kbytes

RE: deleted items retention

(OP)
I also noticed that there isn't in my application event log an event of 1221 for maintenance to be running

RE: deleted items retention

(OP)
under the deletion settings under organization config-mailbox-and properties under database management is the deletion settings "keep deleted items for(days)" how long the retention is or how far back users deleted items is stored....so it will only hold 14 days back from the current day....we are wanting it to only hold 14 days worth of deleted items....its is working on some users but not on others

thanks for your help

RE: deleted items retention

A few things to make sure we're on the same page:

- Each mailbox database has its own deleted item retention settings.
- Only the items that have been deleted from the deleted items (ie Empty the Trash) are part of this process. Not the items sitting in Deleted Items.

If it's working for some users, but not others, look for the commonality: are the users it isn't working for all on the same database? If so, is it that large one that might not be completing the nightly maintenance run?

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
we have the keep deleted items for(days) set to 14 days for every user.....its working for some and not for others all in the same database

I thought this is supposed to keep only 14 days worth in our deleted items, so for instance today, the deleted items would go back to 1/8

RE: deleted items retention

(OP)
Has this changed in Exchange Server versions as its odd that its working for some of our users but not all......so from the link listed this will allow us to for instance only go back x number of days in our deleted items in users' mailboxes?

RE: deleted items retention

(OP)
yes, we don not have retention policies set on any of our users....we have set them on two of them, but then do we have to run the start-managedfolderassistant, or when will this run nightly?

RE: deleted items retention

Force a deletion with powershell

CODE -->

Get-mailbox -ResultSize Unlimited| search-mailbox –searchquery "Subject:'*'" –DeleteContent -SearchDumpsterOnly 

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at http://www.thespidersparlor.com/vbscript

Work SMARTER not HARDER.

RE: deleted items retention

(OP)
We only want to hold 2 weeks worth of items in each users deleted items though

RE: deleted items retention

Normally MailBox Management runs nightly.

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
what do we need to look for to see if the mailbox management is running correctly as we have 2 mailboxes assigned to a 14 day retention policy to delete the deleted items, but its not working

RE: deleted items retention

(OP)
I just ran the following Get-MailboxServer | fl Name, ManagedFolderAssistantSchedule

and under the schedule it shows nothing

RE: deleted items retention

(OP)
Do I put this in the exchange Management Shell or Powershell?

RE: deleted items retention

Exchange Management Shell (Exchange PowerShell)

Dave Shackelford
ThirdTier.net

RE: deleted items retention

(OP)
so I have set the schedule, so now just wait and see if for the two mailboxes I have set if this processes tomorrow morning?

thanks for your help

RE: deleted items retention

(OP)
still after running this when I run Get-Mailbox Server | fl Name, ManagedFolderAssitantSchedule, Im not seeing anything

RE: deleted items retention

(OP)
could I please get some more assistance on this as when I run the above script nothing comes up....we have the retention policies along with the appropriate tags to only hold 14 days in the deleted items, but for the two users who we have this assigned to its not working

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close