Disable-MailPublicFolder (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

Use the Disable-MailPublicFolder cmdlet to mail-disable a public folder.

Syntax

Disable-MailPublicFolder -Identity <PublicFolderIdParameter> [-DomainController <Fqdn>] [-Server <ServerIdParameter>]

Detailed Description

To run the Disable-MailPublicFolder 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

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the domain controller to use to write this configuration change to Active Directory. Use the fully qualified domain name (FQDN) of the domain controller that you want to use.

Identity

Required

Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter

Use the Identity parameter to specify the GUID or public folder name that represents a specific public folder. You can also include the path using the format TopLevelPublicFolder\PublicFolder.

You can omit the parameter label Identity so that only the public folder name or GUID is supplied.

Server

Optional

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

The Server parameter specifies the Mailbox server with public folder database on which to perform the operation.

Input Types

Return Types

Errors

Error Description

 

Exceptions

Exceptions Description

 

Example

The following code example mail-disables a public folder that is called My Public Folder.

Disable-MailPublicFolder -Identity "\My Public Folder"