Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

November 27, 2007 12:00 AM

Configuring Deleted Items Retention Periods in Exchange Server 2007

Windows IT Pro
InstantDoc ID #97382
Rating: (0)

Deleted items retention is configured by default in Exchange Server 2007 for both mailboxes and individual items within a mailbox. For mailboxes, the default setting is 30 days, and for mail items, the default setting is 14 days. The retention periods can be changed using the following Windows PowerShell commands in Exchange Management Shell:

Set-MailboxDatabase `
 -Identity "Mailbox Database" `
 -DeletedItemRetention 7.00:00:00
Set-MailboxDatabase `
 -Identity "Mailbox Database" `
 -MailboxRetention 7.00:00:00

Note that the backtick (`) at the end of a line indicates that the command continues on the next line; in Exchange Management Shell, you could enter the command all on one line without the backticks. The time period is set with the following format: days.hours.minutes.seconds. In the examples, 7.00:00:00 indicates a retention period of seven days.

The Deleted items retention period can also be set per user by entering the command

Set-Mailbox <account name> `
 -ItemRetention 7.00:00:00

where <account name> is the account name of the individual user.

By default, deleted items retention enables restore of only soft-deleted mail (i.e., mail deleted via the Deleted Items folder in an Outlook mailbox). If a hard delete is performed (by pressing the Shift key when deleting the mail item), the item doesn't enter the deleted items retention system. However, you can change this behavior by making a registry modification on client systems. In the HKLM\SOFTWARE\Microsoft\Exchange\Client\Options subkey, create a new DWORD value named DumpsterAlwaysOn and set its value to 1. Making this modification has the potential to increase your Exchange storage requirements significantly if you keep deleted items for a long period of time.

After making the registry change, you'll be able to highlight any folder in Outlook and choose Tools, Recover Deleted Items to bring up the Recover Deleted Items window. Click the envelope icon to restore the item to the mailbox folder from which it was deleted.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.