A lot of planning goes into setting up a successful MRM solution, but the basic setup is fundamentally a five step process.
MRM process.gif)
Let's walk through the steps for implementing a simple MRM solution by creating a managed folder and adding it to a user's mailbox. The entire process can be done with a graphical user interface in the Exchange Management Console, starting in the Mailbox node under Organization Configuration. In this example, however, we'll use the new Exchange Management Shell.
A Simple Example: The Retain One Month Folder
In this example, you'll create a new managed custom folder named Retain One Month. Managed folders with very short retention times are popular with users for storing routine, automated notices and other messages that are of only brief interest before turning into mailbox clutter. By routing messages like those to a managed folder with a short retention time, mailbox clutter is cleaned up automatically.
You can find detailed guidance about how to set up a more sophisticated MRM solution in the topic Managing Messaging Records Management.
For more information about how to use the Exchange Management Shell, see Using the Exchange Management Shell.
Step 1: Creating a Managed Folder
You can start an MRM solution by creating a new managed folder like you're doing here, or you can configure an existing managed folder (like the Inbox). (You can even create a new instance of the Inbox with different settings if you want.) For details, see How to Create a Managed Folder.
Including the retention limit (if any) in the name of managed folders (for example Long Term (5 years) or Personal Use (no age limit)) makes them easier to use because many users sort messages according to retention time.
You can also add a comment to a managed folder. Users will be able to see the comment when they select the folder in Outlook or Outlook Web Access. (The following code example is an illustration.)
Here's the command we'll run in the Exchange Management Shell to create a new managed folder.
New-ManagedFolder -FolderName "Retain One Month" -Name "ShortRetentionFolder" -Comment "Items in this folder are deleted after one month."
-
The -FolderName parameter specifies the folder name that the users see in the mailbox.
-
The -Name parameter specifies a separate name seen only by the administrator in the Exchange Management Shell and the Exchange Management Console.
-
The -Comment parameter is used to assign a comment that the user can see in Microsoft Outlook or Outlook Web Access.
For more information about the New-ManagedFolder cmdlet, see New-ManagedFolder.
Step 2: Creating Managed Content Settings for the Managed Folder
Now that we've created a managed folder, we'll use the following command to create managed content settings that direct the managed folder assistant to move anything in the folder that is more than 30 days old to the Deleted Items folder.
Here's the command that we'll run in the Exchange Management Shell to create the managed content settings.
New-ManagedContentSettings -FolderName "ShortRetentionFolder" -Name "Short Retention Setting" -MessageClass AllMailboxContent -AgeLimitForRetention "30" -RetentionAction MoveToDeletedItems -RetentionEnabled $true
-
The -FolderName parameter specifies the folder that the content settings apply to.
Important: |
|---|
|
In the New-ManagedContentSettings command, the -FolderName parameter refers to the setting that was specified with the -Name parameter in the New-ManagedFolder cmdlet in Step 1.
|
-
The -Name parameter specifies the name of this content setting: Short Retention Setting.
-
The -MessageClass parameter specifies the message type to which the settings apply.
-
The -AgeLimitForRetention parameter tells the managed folder assistant the maximum age for items in the folder, in this case 30 days.
-
The -RetentionAction parameter specifies what the managed folder assistant should do with items that are at the end of their retention limit. Here you're moving them to the Deleted Items folder.
-
The -RetentionEnabled parameter turns on retention processing. If this parameter is set to
$false, the managed folder assistant ignores content settings for retention. If you specify a value with the -RetentionAction parameter, you must set -RetentionEnabled to $true.
For detailed information about creating managed content settings, see How to Create Managed Content Settings.
For more information about the New-ManagedContentSettings cmdlet, see New-ManagedContentSettings.
Step 3: Creating a Managed Folder Mailbox Policy
Next, we link the managed folder that we have created to a managed folder mailbox policy. Managed folder mailbox policies are used to create logical groupings of managed folders, which makes adding managed folders to users' mailboxes easy.
For example, in the preceding illustration, a policy called Research Staff was created and linked to two managed folders: an Inbox with 180 day retention and another managed folder named R&D Folder. The Research Staff policy is then applied to the mailboxes of all new employees who join the research team, and the two managed folders are automatically added to their mailboxes.
When working with managed folder mailbox policies, keep the following points in mind:
-
You can add as many managed folders to a managed folder mailbox policy as you want.
-
You can create as many managed folder mailbox policies as you want.
-
Each user mailbox, however, can have only one managed folder mailbox policy.
-
Supporting multiple managed folder mailbox policies can be difficult from a support and maintenance perspective because it can require changes to user settings when users change roles in the organization.
Here's the command we'll run in the Exchange Management Shell to create the managed folder mailbox policy.
New-ManagedFolderMailboxPolicy -Name ShortRetentionPolicy -ManagedFolderLinks ShortRetentionFolder
-
We use the -Name parameter to give the new policy the name ShortRetentionPolicy.
-
The -ManagedFolderLinks parameter is used to link the ShortRetentionFolder folder we created in Step 1 to ShortRetentionPolicy policy.
For detailed information about creating managed folder mailbox policies, see How to Create a Managed Folder Mailbox Policy.
For more information about the New-ManagedFolderMailboxPolicy cmdlet, see New-ManagedFolderMailboxPolicy.
Step 4: Applying the Policy to a Mailbox
The next step is to apply the managed folder mailbox policy we have created to a user's mailbox. This causes the managed folder assistant to add the folders that are linked to the policy to the mailbox.
Here's the command we'll run in the Exchange Management Shell to apply our managed folder mailbox policy to a user's mailbox.
Set-Mailbox -Identity jpeoples -ManagedFolderMailboxPolicy ShortRetentionPolicy
-
We're applying the new policy to the mailbox of John Peoples, specifying his mailbox with his alias, jpeoples.
For detailed information about how to apply a managed folder mailbox policy to user mailboxes, see How to Apply a Managed Folder Mailbox Policy to User Mailboxes.
For more information about the Set-Mailbox cmdlet, see Set-Mailbox.
Step 5: Running the Managed Folder Assistant
MRM isn't implemented until the managed folder assistant runs. All of the folders, settings, and policies that you create sit idle until the managed folder assistant starts working its way through the mailboxes on the mailbox server.
Because running the managed folder assistant can be a resource-intensive process (especially the first time it runs), it's best to run it at times of low server load. (It's also a good idea to monitor its performance. For details, see Monitoring Messaging Records Management.)
Scheduling the Managed Folder Assistant
Here's the command we'll run in the Exchange Management Shell to schedule the managed folder assistant.
Set-MailboxServer -Identity MyMailboxServer -ManagedFolderAssistantSchedule "Sun.02:00-Sun.06:00"
-
The -Identity parameter specifies the server that you want the managed folder assistant to run on.
-
The -ManagedFolderAssistantSchedule parameter sets the time interval during which you want the assistant to run. Here we're setting it to run from 02:00 to 06:00 on Sunday morning.
Note: |
|---|
|
If the managed folder assistant cannot finish processing all of the mailboxes in the time allotted, it starts processing the next mailbox in line the next time it runs.
|
For detailed information about scheduling and running the managed folder assistant, see How to Schedule the Managed Folder Assistant.
For more information about the Set-MailboxServer cmdlet, see Set-MailboxServer.
Starting and Stopping the Managed Folder Assistant
You don't have to schedule the managed folder assistant to make it run. You can also use the Exchange Management Shell to order the assistant to simply start or stop. (This is an example of one of the many useful things that you can do in the Exchange Management Shell that you can't do in the Exchange Management Console.)
The commands are:
-
Start-ManagedFolderAssistant
-
Stop-ManagedFolderAssistant
Note: |
|---|
|
Every time the Start-ManagedFolderAssistant cmdlet runs, processing of mailboxes stops and then restarts, reprocessing all of the mailboxes on the server from the beginning.
|
For more information about the Start-ManagedFolderAssistant and Stop-ManagedFolderAssistant cmdlets, see Start-ManagedFolderAssistant and Stop-ManagedFolderAssistant.
Turning off MRM