Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to check and change the Deleted Item Retention Period on Exchange server 2010?

Posted on 2015-01-15
5
Medium Priority
?
298 Views
Last Modified: 2015-01-16
I just realised that the Deleted Item Retention Period on the Exchange Server 2010 standard is only 14 days.
(It was 30 days on the Small Business Server 2011 that has Exchange 2010 on it - which made me think that this period is longer)

I would like to change this default to at least 30 days on "regular" (non sbs) Exchange.

How can I check what is the Deleted Item Retention Period currently set up to on the Exchange server that was supported by previous IT personnel?
 
How can I extend the Deleted Item Retention Period for all server (not specific mailbox) on "regular" Exchange 2010?
0
Comment
Question by:pyotrek
  • 3
  • 2
5 Comments
 
LVL 17

Assisted Solution

by:Ivan
Ivan earned 2000 total points
ID: 40552343
Hi there,

to increase the deleted item retention period for all user mailboxes in the organization.

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -RetainDeletedItemsFor 30

To check current settings:
Get-Mailbox <Name> | FL RetainDeletedItemsFor
or
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | FL Name,RetainDeletedItemsFor

Regards,
0
 
LVL 17

Accepted Solution

by:
Ivan earned 2000 total points
ID: 40552348
ops, that is for 2013.

For exchange 2010, it is: Set-MailboxDatabase -Identity MDB2 -DeletedItemRetention 30
Just change Database Identity.

Regards,
0
 
LVL 1

Author Closing Comment

by:pyotrek
ID: 40552394
Fantastic - thanks a lot
0
 
LVL 1

Author Comment

by:pyotrek
ID: 40552399
spriggan13:
Could you list here commands for exchange 2007, 2010 and 2013?
0
 
LVL 17

Expert Comment

by:Ivan
ID: 40552982
Hi,

for 2007 it is almost same thing.

http://technet.microsoft.com/en-us/library/aa997206(v=exchg.80).aspx

Set-MailboxDatabase <database_name> -DeletedItemRetention 7.00:00:00

You can do it via GUI as well :)

Regards
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question