• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

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

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Management >> What happened to the old mailbox managment settings in 2003? I can't have more than one policy for d Page: [1]
Login
Message << Older Topic   Newer Topic >>
What happened to the old mailbox managment settings in ... - 20.Apr.2010 9:47:06 AM   
underpants

 

Posts: 11
Joined: 3.Oct.2005
Status: offline
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?
Post #: 1
RE: What happened to the old mailbox managment settings... - 20.Apr.2010 4:35:41 PM   
underpants

 

Posts: 11
Joined: 3.Oct.2005
Status: offline
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

(in reply to underpants)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Management >> What happened to the old mailbox managment settings in 2003? I can't have more than one policy for d Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter