ManagedContentSettings

Exchange 2010
I have and existing folder policy applied to all mailboxes:
ManagedContentSettings –FolderName “Deleted Items” –MessageClass * –Name “DeletedItemsContentSetting” –RetentionEnabled $True –RetentionAction DeleteandAllowRecovery –AgeLimitForRetention 15

Need to have another one to apply to some of the mailboxes w/ "-AgeLimitForRetention 45"

Attempted to create a new one:
New ManagedContentSettings –FolderName “Deleted Items” –MessageClass * –Name “DeletedItemsContentSetting2” –RetentionEnabled $True –RetentionAction DeleteandAllowRecovery –AgeLimitForRetention 45

Giving me an error MessageClass already exist.
Any suggestions?
guerafAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rajitha ChimmaniCommented:
Only one managed content setting can be applied for specific message type within a managed default folder.

To complete it you might have to create another managed folder specific for 45 day retention.

1. Create a new managed default folder (Example - DeletedItems-45DayRetention)
2. Create a new managed content setting for this new folder.

Ref: http://exchangepedia.com/2007/10/managed-folders-how-to-apply-different-managed-content-settings-to-default-folders.html
0
guerafAuthor Commented:
How to do this in exchange 2010?
0
Rajitha ChimmaniCommented:
You can use New-ManagedFolder command to create a new default folder. Powershell help will give all parameters for this command along with example.

get-help New-ManagedFolder -detailed

And i guess you know the command for New-ManagedContentSetting.

Ref: http://technet.microsoft.com/en-us/library/aa998808(v=exchg.141).aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

guerafAuthor Commented:
I'm just going to get rid of the Managed Folder Mailbox Policy.
Will recreate the same setting using Retention Policy instead.
0
Rajitha ChimmaniCommented:
Have you tried creating the retention policy? The error that you posted was for managed folders.
0
guerafAuthor Commented:
Not yet, i will be testing it.
0
guerafAuthor Commented:
Below is the fix. But I've replaced ManagedFolderMailboxPolicies and recreated with Retention Policies instead. Thanks!

[PS] C:\>New-ManagedFolder -Name "DeletedItems-45Day" -DefaultFolderType DeletedItems

Name                      FolderName                Description
----                      ----------                -----------
DeletedItems-45Day        DeletedItems              ManagedDefaultFolder


[PS] C:\>New-ManagedContentSettings -FolderName "DeletedItems-45Day" -MessageClass * -Name "DeletedItemsContentSetting2"
 -RetentionEnabled $True -RetentionAction DeleteandAllowRecovery -AgeLimitForRetention 45

Name                      MessageClass              ManagedFolderName
----                      ------------              -----------------
DeletedItemsContentSet... *                         DeletedItems-45Day


[PS] C:\>New-ManagedFolderMailboxPolicy -Name "DeletedItems-45DayMailboxPolicy" -ManagedFolderLinks "DeletedItems-45Day"


Name                      ManagedFolderLinks                             MailboxPolicyFlags
----                      ------------------                             ------------------
DeletedItems-45DayMail... {DeletedItems-45Day}
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.