Set-ManagedFolderMailboxPolicy
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
Use the Set-ManagedFolderMailboxPolicy cmdlet to change the settings of managed folder mailbox policies.
Syntax
set-ManagedFolderMailboxPolicy -Identity <MailboxPolicyIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-ManagedFolderLinks <ELCFolderIdParameter[]>] [-Name <String>] [-WhatIf [<SwitchParameter>]]
set-ManagedFolderMailboxPolicy [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Instance <ManagedFolderMailboxPolicy>] [-ManagedFolderLinks <ELCFolderIdParameter[]>] [-Name <String>] [-WhatIf [<SwitchParameter>]]
Detailed Description
To run the Set-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 Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter |
The Identity parameter specifies the name, distinguished name, or GUID of the 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 don't 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. |
Instance |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.ManagedFolderMailboxPolicy |
The Instance parameter enables you to pass an entire object to the command to be processed. It is mainly used in scripts where an entire object must be passed to the command. |
ManagedFolderLinks |
Optional |
Microsoft.Exchange.Configuration.Tasks.ELCFolderIdParameter[] |
The ManagedFolderLinks parameter specifies managed folders to which the managed folder mailbox policy is to be linked. The managed folders that you link to a policy appear in all mailboxes to which the policy is applied. |
Name |
Optional |
System.String |
The Name parameter specifies a unique name for the policy. |
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 don't have to specify a value with the WhatIf parameter. |
Input Types
Return Types
Errors
Error | Description |
---|---|
Exceptions
Exceptions | Description |
---|---|
Example
In the first example, the Set-ManagedFolderMailboxPolicy command is used to change the name of the managed folder mailbox policy that is named PM Storage Template1 to PM Storage Template2.
In the second example, the Set-ManagedFolderMailboxPolicy command is used to link the managed custom folders that are named Custom Folder 1 and Custom Folder 2 to the Managed Folder Mailbox Policy that is named My Managed Folder Mailbox Policy.
Set-ManagedFolderMailboxPolicy "PM Storage Template1" -Name "PM Storage Template2"
Set-ManagedFolderMailboxPolicy -Identity "My Managed Folder Mailbox Policy" -ManagedFolderLinks "Custom Folder 1", "Custom Folder 2"