[This topic's current status is:
Content Complete.]
Applies to: Exchange Server 2010
Topic Last Modified: 2009-07-12
Use the New-PublicFolder cmdlet to create a public folder with the specified name.

Syntax
New-PublicFolder -Name <String> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Path <PublicFolderIdParameter>] [-Server <ServerIdParameter>] [-WhatIf [<SwitchParameter>]]

Parameters
|
Parameter
|
Required
|
Type
|
Description
|
|---|
|
Name
|
Required
|
System.String
|
The Name parameter specifies the name for the public folder.
|
|
Confirm
|
Optional
|
System.Management.Automation.SwitchParameter
|
The Confirm switch 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 switch.
|
|
DomainController
|
Optional
|
Microsoft.Exchange.Data.Fqdn
|
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.
|
|
Path
|
Optional
|
Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter
|
The Path parameter specifies the location of the folder in the folder hierarchy, for example, \Legal\Cases.
|
|
Server
|
Optional
|
Microsoft.Exchange.Configuration.Tasks.ServerIdParameter
|
The Server parameter specifies the server on which to create the public folder.
If a server isn't specified, the command checks whether the local server is running Microsoft Exchange Server 2010 or Exchange Server 2007 with the Mailbox server role installed and with a public folder database. If it is, the public folder is created locally. If it isn't, Exchange finds the closest (by site cost) Exchange 2010 or Exchange 2007 Mailbox server with a public folder database on which to create the public folder.
|
|
WhatIf
|
Optional
|
System.Management.Automation.SwitchParameter
|
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, 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 switch.
|

Detailed Description
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Public folder" entry in the Mailbox Permissions topic.

Input Types

Return Types

Errors

Exceptions

Examples

EXAMPLE 1
This example creates the public folder Marketing in the root of the public folder tree on the local server of the closest Mailbox server with a public folder database.
New-PublicFolder -Name Marketing

EXAMPLE 2
This example creates the public folder FY2010 under the existing folders \Legal\Cases. The path to the new folder is \Legal\Cases\FY2010 on the server MBXSVR01.
New-PublicFolder -Name FY2010 -Path \Legal\Cases -Server MBXSVR01