SOLVED
Home

EXO: Change recoverable items retention policy to 30 days for all mailboxes

%3CLINGO-SUB%20id%3D%22lingo-sub-198930%22%20slang%3D%22en-US%22%3EEXO%3A%20Change%20recoverable%20items%20retention%20policy%20to%2030%20days%20for%20all%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198930%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20read%20the%20following%20article%20that%20explains%20how%20to%20change%20how%20long%20permanently%20deleted%20items%20are%20kept%20for%20Exchange%20Online.%20The%20commands%20provided%20there%20are%20through%20PowerShell%20either%20by%20targeting%20a%20specific%20mailbox%2C%20piping%20the%20cmdlet%20to%20all%20existing%20mailboxes.%26nbsp%3BHowever%20these%20commands%20are%20a%20one-shot%2C%20and%20would%20need%20to%20be%20repeated%20if%20I%20want%20to%20change%20the%20default%20from%2014%20days%20to%2030%20days%20also%20for%20all%20new%20mailboxes%20that%20didn't%20exist%20when%20the%20command%20was%20run%20for%20the%20first%20time.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20somehow%20possible%20to%20change%20the%20default%20%3CSTRONG%3Eretention%20policy%3C%2FSTRONG%3Eto%20keep%20recoverable%20items%20longer%20than%2014%20days%3F%20(which%20would%20auto-apply%20to%20any%20mailboxes%20in%20the%20organization%2C%20including%20ones%20that%20are%20created%20later)%3C%2FP%3E%3CP%3EI%20noticed%20the%20%22%3CSPAN%3ERecoverable%20Items%2014%20days%20move%20to%20archive%22%20retention%20tag%20in%20Exchange%20Online%2C%20but%20somehow%20seem%20unable%20to%20change%20it%2C%26nbsp%3Bneither%20can%20I%20create%20a%20new%20retention%20tag%20for%20the%20%22Recoverable%20Items%20folder%22%20type.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-198930%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199484%22%20slang%3D%22en-US%22%3ERe%3A%20EXO%3A%20Change%20recoverable%20items%20retention%20policy%20to%2030%20days%20for%20all%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199484%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20the%20user%20has%20an%20Archive%20mailbox%2C%20items%20in%20that%20folder%20(Deletions%2F%22Recover%20Deleted%20Items%22)%20will%20be%20moved%20to%20the%20corresponding%20folder%20in%20the%20Archive%20mailbox%20after%2014%20days.%20The%20idea%20is%20to%20clean%20up%20space%20in%20the%20primary%20mailbox%20as%20those%20items%20count%20against%20the%20RecoverableItemsQuota.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20RetainDeletedItems%20for%20duration%20still%20applies%2C%20so%20they%20will%20eventually%20end%20up%20in%20the%20Purges%20folder%20(either%20in%20the%20primary%20mailbox%20or%20in%20the%20archive%20one).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199248%22%20slang%3D%22en-US%22%3ERe%3A%20EXO%3A%20Change%20recoverable%20items%20retention%20policy%20to%2030%20days%20for%20all%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199248%22%20slang%3D%22en-US%22%3E%3CP%3EWhoops%2C%20you%20guessed%20correctly%2C%20I%20was%20talking%20about%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fdn163584(v%3Dexchg.150).aspx%23More%20about%20deleted%20items%20and%20retention%20time%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ERetainDeletedItemsFor%3C%2FA%3Eparameter.%26nbsp%3BThanks%20a%20lot%20for%20pointing%20out%20the%20MailboxPlan%2C%20looks%20like%20this%20will%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20I%20understand%20what%20you%20mean%20about%20the%26nbsp%3B%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3ERecoverable%20Items%2014%20days%20move%20to%20archive%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3Epolicy.%20If%20this%20is%20applying%20to%20the%20Deletions%20(Recoverable%20items)%20folder%2C%20what%20does%20it%20mean%20that%20items%20get%20moved%20to%20archive%20after%2014%20days%3F%20Would%20it%20mean%20the%20item%20stays%20in%20the%20user's%20mailbox%20for%2014%20days%2C%20and%20(if%20the%20RetainDeletedItemsFor%20parameter%20is%20set%20to%20a%20value%20larger%20than%2014)%20the%20item%20is%20then%20moved%20to%20the%20online%20archive%20mailbox%20after%2014%20days%20(until%20it%20is%20purged%20after%20maximum%2030%20days)%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199175%22%20slang%3D%22en-US%22%3ERe%3A%20EXO%3A%20Change%20recoverable%20items%20retention%20policy%20to%2030%20days%20for%20all%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199175%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20haven't%20linked%20any%20article%2C%20so%20I'll%20just%20assume%20you%20are%20talking%20about%20the%20RetainDeletedItemsFor%26nbsp%3Bsetting%2C%20which%20controls%20the%20amount%20of%20time%20messages%20are%20kept%20in%20the%20Purges%20folder.%20If%20so%2C%20you%20can%20pre-configure%20this%20setting%20for%20any%20newly%20created%20mailboxes%20by%20changing%20the%20corresponding%20parameter%20of%20the%20Mailbox%20plan(s)%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-MailboxPlan%20%7C%20Set-MailboxPlan%20-RetainDeletedItemsFor%2030%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20%22%3CSPAN%3ERecoverable%20Items%2014%20days%20move%20to%20archive%3C%2FSPAN%3E%22%20applies%20to%20the%20%22Deletions%22%20folder%2C%20which%20is%20a%20level%20%22higher%22%20than%20the%20Purges%20folder.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Bart Billiet
New Contributor

Hello, 

 

I read the following article that explains how to change how long permanently deleted items are kept for Exchange Online. The commands provided there are through PowerShell either by targeting a specific mailbox, piping the cmdlet to all existing mailboxes. However these commands are a one-shot, and would need to be repeated if I want to change the default from 14 days to 30 days also for all new mailboxes that didn't exist when the command was run for the first time. 

 

Is it somehow possible to change the default retention policy to keep recoverable items longer than 14 days? (which would auto-apply to any mailboxes in the organization, including ones that are created later)

I noticed the "Recoverable Items 14 days move to archive" retention tag in Exchange Online, but somehow seem unable to change it, neither can I create a new retention tag for the "Recoverable Items folder" type. 

 

Thanks a lot!

3 Replies
Solution

You haven't linked any article, so I'll just assume you are talking about the RetainDeletedItemsFor setting, which controls the amount of time messages are kept in the Purges folder. If so, you can pre-configure this setting for any newly created mailboxes by changing the corresponding parameter of the Mailbox plan(s):

 

Get-MailboxPlan | Set-MailboxPlan -RetainDeletedItemsFor 30

 

The "Recoverable Items 14 days move to archive" applies to the "Deletions" folder, which is a level "higher" than the Purges folder.

Whoops, you guessed correctly, I was talking about the RetainDeletedItemsFor parameter. Thanks a lot for pointing out the MailboxPlan, looks like this will help!

 

I'm not sure I understand what you mean about the "Recoverable Items 14 days move to archive" policy. If this is applying to the Deletions (Recoverable items) folder, what does it mean that items get moved to archive after 14 days? Would it mean the item stays in the user's mailbox for 14 days, and (if the RetainDeletedItemsFor parameter is set to a value larger than 14) the item is then moved to the online archive mailbox after 14 days (until it is purged after maximum 30 days)? 

If the user has an Archive mailbox, items in that folder (Deletions/"Recover Deleted Items") will be moved to the corresponding folder in the Archive mailbox after 14 days. The idea is to clean up space in the primary mailbox as those items count against the RecoverableItemsQuota.

 

The RetainDeletedItems for duration still applies, so they will eventually end up in the Purges folder (either in the primary mailbox or in the archive one).