Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1
Topic Last Modified: 2007-08-20

Use the New-ManagedFolderMailboxPolicy cmdlet to create a new managed folder mailbox policy.

Syntax

new-ManagedFolderMailboxPolicy -Name <String> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-ManagedFolderLinks <ELCFolderIdParameter[]>] [-TemplateInstance <PSObject>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Name

Required

System.String

The Name parameter specifies the name of the new managed folder mailbox policy.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm parameter causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You do not have to specify a value with the Confirm parameter.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command.

ManagedFolderLinks

Optional

Microsoft.Exchange.Configuration.Tasks.ELCFolderIdParameter[]

The ManagedFolderLinks parameter specifies the list of managed folders to which the managed folder mailbox policy is to be linked.

TemplateInstance

Optional

System.Management.Automation.PSObject

When an existing object is supplied to the TemplateInstance parameter, the command uses the configuration of that object to create an exact duplicate of the object on a local or target server.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You do not have to specify a value with the WhatIf parameter.

Detailed Description

To run the New-ManagedFolderMailboxPolicy cmdlet, the account you use must be delegated the following:

  • Exchange Organization Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

Note:
Managed custom folders are a premium feature of messaging records management (MRM). Mailboxes with policies that include managed custom folders require an Exchange Server Enterprise client access license (CAL).

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

In this example, the New-ManagedFolderMailboxPolicy command is used to create the managed folder mailbox policy named My Managed Folder Mailbox Policy, with a list of managed folders to which the managed folder mailbox policy is to be linked.

Copy Code
New-ManagedFolderMailboxPolicy -Name "My Managed Folder Mailbox Policy" -ManagedFolderLinks Inbox, MyFolder