Solved

ManagedContentSettings

Posted on 2014-09-22
7
104 Views
Last Modified: 2014-09-23
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?
0
Comment
Question by:gueraf
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 40337679
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
 

Author Comment

by:gueraf
ID: 40337943
How to do this in exchange 2010?
0
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 500 total points
ID: 40337970
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:gueraf
ID: 40338021
I'm just going to get rid of the Managed Folder Mailbox Policy.
Will recreate the same setting using Retention Policy instead.
0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 40338037
Have you tried creating the retention policy? The error that you posted was for managed folders.
0
 

Author Comment

by:gueraf
ID: 40338047
Not yet, i will be testing it.
0
 

Author Closing Comment

by:gueraf
ID: 40339553
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

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question