Managed Folder Policies in Exchange 2007
Hi We have three mailbox servers that are Exchange 2007 SP1 (MAIL1, MAIL2, MAIL3)and two on Exchange 2003 SP2 (MAILA, MAILB) I would like to have Managed Folder Policies running on all mailboxes on that are on Exchange 2007 mailbox servers.So, we have created two Managed Content Settings: i) Deleted Items permantly removed after 5 daysii) Items in Inbox that are older than 90 days moved to Deleted Items folder Now is the problem :) I guess I then need to create Managed Folder Policies for these two items? There is an article here on how to apply the MFP to variables: http://exchangepedia.com/blog/2007/05/applying-managed-folder-policy-to-more.html I'm assuming I would use something like: Get-Mailbox -Mailboxserver "MAIL1" -ResultSize unlimited | Set-Mailbox -ManagedFolderMailboxPolicy "Policy-DeletedItems90Days" 1. Does anyone know the correct format to enter all three Mail servers (MAIL1, MAIL2, MAIL3) in this command? 2. Also, do I then need to schedule this, however? How is that possible? 3. Finally, I assume this policy wont apply by default to new users? Am I correct in thinking that we would need to have a weekly script running that applied this to all mailboxes on those three servers? Is it possible to schedule a PowerShell script such as the one above? Thanks for any guidance on this.
December 13th, 2009 7:18pm

On Sun, 13-Dec-09 16:18:26 GMT, Pancamo wrote:>We have three mailbox servers that are Exchange 2007 SP1 (MAIL1, MAIL2, MAIL3) and two on Exchange 2003 SP2 (MAILA, MAILB) >>I would like to have Managed Folder Policies running on all mailboxes on that are on Exchange 2007 mailbox servers.So, we have created two Managed Content Settings: >>i) Deleted Items permantly removed after 5 daysii) Items in Inbox that are older than 90 days moved to Deleted Items folder >>Now is the problem :) >wo items? >>There is an article here on how to apply the MFP to variables: >>http://exchangepedia.com/blog/2007/05/applying-managed-folder-policy-to-more.html >>I'm assuming I would use something like: >>Get-Mailbox -Mailboxserver "MAIL1" -ResultSize unlimited | Set-Mailbox -ManagedFolderMailboxPolicy "Policy-DeletedItems90Days" >>1. Does anyone know the correct format to enter all three Mail servers (MAIL1, MAIL2, MAIL3) in this command? For just those three machines you can pipe the names:'mail1','mail2','mail3' | get-exchangeserver | get-mailbox . . . To deal with all Exchange 2007 servers that are mailbox servers youcould either be selective:get-exchangeserver | where {$_.IsMailboxServer -eq $true -and$_.IsExchange2007OrLater} | get-mailbox . . . or just go after all the E2K7 databases:get-mailboxdatabase | get-mailbox . . . There are lots of ways to have the policy applied as broadly, ornarrowly, as you need.is, however? How is that possible? That depends on your needs. If you have multiple policies and they'dbe applied based on values associated with individual users then you'dhave to be sure to apply the correct policy. If you have a large ADyou probably wouldn't want to be blindly updating policies if thecorrect one was already applied to the mailbox.You'd create a powershell script and run it as a scheduled task.>3. Finally, I assume this policy wont apply by default to new users? Not if you don't have some automated process. You don't say how youcreate new AD users and mailboxes, but it may be possible to create a'template' user and just copy that user as the basis for each newuser.>Am I correct in thinking that we would need to have a weekly script running that applied this to all mailboxes on those three servers? How often you verify that the correct policies are applied is up toyou. Once a week would be fine for policy as general as the one youdescribe.possible to schedule a PowerShell script such as the one above? Yes, it is.---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
December 13th, 2009 9:18pm

HelloThanks for the info.Say we have one Mailbox Policy we want to apply to all users on MAIL1, MAIL2, MAIL3.Can we run that initial PS script to assign the Mailbox Policy to these users, then on MAIL1, MAIL2, MAIL3 set the Managed Folder Assistant to run, say, once a week?Any new mailboxes should be copied so will pick up the policy.
December 14th, 2009 3:40pm

On Mon, 14-Dec-09 12:40:23 GMT, Pancamo wrote:>HelloThanks for the info.Say we have one Mailbox Policy we want to apply to all users on MAIL1, MAIL2, MAIL3.Can we run that initial PS script to assign the Mailbox Policy to these users, then on MAIL1, MAIL2, MAIL3 set the Managed Folder Assistant to run, say, once a week?Any new mailboxes should be copied so will pick up the policy. Yes, you can.I'd add one more thing to your Set-Mailbox command, though:-ManagedFolderMailboxPolicyAllowed:$trueu'll get an annoying prompt about OL2003 not fullysupporting MRM.---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
December 14th, 2009 5:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics