What happened to the old mailbox managment settings in 2003? I can't have more than one policy for d (Full Version)

All Forums >> [Microsoft Exchange 2007] >> Management



Message


underpants -> What happened to the old mailbox managment settings in 2003? I can't have more than one policy for d (20.Apr.2010 9:47:06 AM)

I have a very large company on Exchange 2007 and need to set up some deleted item retention for groups of people. I want to permanantly delete messages older than a certain number of days. However, some mailboxes need a policy for 1 day (voicemail) other mailboxes need a policy for 2 years, others need a policy for 30 days, dependent on the purpose of the mailbox...

In Exchange 2003 this was a piece of cake.
In Exchange 2007 it's not possible to have more than one policy on the the default Deleted Items folder for our entire organization? Are you kidding me?




underpants -> RE: What happened to the old mailbox managment settings in 2003? I can't have more than one policy for d (20.Apr.2010 4:35:41 PM)

I wrote a script to solve this myself.

# Load the Exchange 2007 snap-in if they are not already loaded
Add-PSSnapIn -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue

# Get "dash VM" accounts from AD. Export (delete) items older than 10 days.
Get-Mailbox -ResultSize unlimited | where {$_.Alias -like "*VMAIL"} | Export-Mailbox -EndDate ((Get-Date).AddDays(-10).ToString('MM/dd/yyyy')) -IncludeFolders "\Deleted Items" -DeleteContent -Confirm:$false




Page: [1]