Sunday, November 18, 2007

Managed Folder Policies

This post has been moved to
http://www.exchange-genie.com/2007/11/managed-folder-policies/

8 comments:

Jens said...

Hey, thanks for this Howto!

I´m using it to keep only 30 days of spam in our quarantine-mailbox.
We had the problem of not watching after this mailbox for a couple of months, resulting in a mailbox with hundreds of thousands small mails.
Deleting by hand was not easy, believe it! :)
So this was the solution!

Kind regards,
Jens

Anonymous said...

Yeah, thanks for this.

Anonymous said...

Thats a great hotwo thanks, but what if you created a second Managed Content Settings on Deleted Items and wanted this to apply to a specific user. How would you tell the policy to use the second Managed Content Settings and not the first.

Exchange_Genie said...

policies are applied at the user level, so if you want 2 different polices you create pol1 and pol2 then you assign the appropriate one to each user

Anonymous said...

I have hundreds of users. What is the powershell command to apply the policy to all users, or a group of users?

Exchange_Genie said...

you can use the get-user or get-mailbox , by adding a switch for the -OrganizationalUnit or get-distrobutiongroupmember and pipe that to the Set-Mailbox -ManagedFolderMailboxPolicy

so it would look like this

get-distrobutiongroupmember group1 | Set-Mailbox -ManagedFolderMailboxPolicy policy1

Corbett Enders said...

Use this Shell command to apply a policy to all of your existing users. I have not figured out how to get a policy to apply to all future created account. So I'll just have to run this periodically to catch new mailboxes.

Get-Mailbox -ResultSize unlimited | Set-Mailbox -ManagedFolderMailboxPolicy "Purge Deleted Items"

Substitute between the quotes for your own policy name.

Exchange_Genie said...

you apply the policy at mbx creation time or you can add it later.
Look into template mailboxes