Applies to: Exchange Server 2013

Topic Last Modified: 2012-07-09

Use the New-MailboxDatabase cmdlet to create a mailbox database object in the database container in Active Directory.

For information about the parameter sets in the Syntax section below, see Syntax.

Syntax

New-MailboxDatabase -Recovery <SwitchParameter> [-Name <String>] <COMMON PARAMETERS>
New-MailboxDatabase -Name <String> [-IsExcludedFromInitialProvisioning <SwitchParameter>] [-IsExcludedFromProvisioning <$true | $false>] [-IsSuspendedFromProvisioning <$true | $false>] [-OfflineAddressBook <OfflineAddressBookIdParameter>] [-PublicFolderDatabase <DatabaseIdParameter>] <COMMON PARAMETERS>
COMMON PARAMETERS: -Server <ServerIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-EdbFilePath <EdbFilePath>] [-LogFolderPath <NonRootLocalLongFullPath>] [-WhatIf [<SwitchParameter>]]

Examples

EXAMPLE 1

This example creates the mailbox database MailboxDatabase01. This example also specifies where to create the .edb database file, which is different than the default location.

Copy Code
New-MailboxDatabase -Name "MailboxDatabase01" -EdbFilePath D:\DatabaseFiles\MailboxDatabase01.edb

Detailed Description

Mailboxes connect to Microsoft Exchange through a Client Access server or a Client Access server array. The Client Access server that the mailboxes connect to is determined by the mailbox database on which they reside. When you create a mailbox database, Exchange assigns a Client Access server or Client Access server array to the mailbox database using the following logic:

  1. Exchange determines if there is an array in the local site. If so, the Client Access server array is assigned to the mailbox database.

  2. Exchange determines if the Mailbox server on which the database is being created is also a Client Access server. If so, that server is assigned to the mailbox database.

  3. If neither of the preceding conditions is met, Exchange randomly selects a Client Access server from the local site.

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 "Mailbox database permissions" section in the Recipients Permissions topic.

Parameters

Parameter Required Type Description

Name

Required

System.String

The Name parameter specifies the name of the new mailbox database.

Recovery

Required

System.Management.Automation.SwitchParameter

The Recovery parameter specifies that the new database is designated as a recovery database.

Server

Required

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

The Server parameter specifies the server you want to create the database on.

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.

EdbFilePath

Optional

Microsoft.Exchange.Data.EdbFilePath

The EdbFilePath parameter specifies the path to the .edb file. The default value is %programfiles%\Microsoft\Exchange Server\V15\Mailbox\<Database name>.edb.

IsExcludedFromInitialProvisioning

Optional

System.Management.Automation.SwitchParameter

The IsExcludedFromInitialProvisioning parameter specifies that this database is temporarily not considered by the mailbox provisioning load balancer. If the IsExcludedFromInitialProvisioning parameter is enabled, new mailboxes aren't added automatically to this database.

IsExcludedFromProvisioning

Optional

System.Boolean

The IsExcludedFromProvisioning parameter specifies whether this database is considered by the mailbox provisioning load balancer. If the IsExcludedFromProvisioning parameter is set to $true, no new mailboxes are automatically added to this database.

IsSuspendedFromProvisioning

Optional

System.Boolean

The IsSuspendedFromProvisioning parameter specifies whether this database is temporarily considered by the mailbox provisioning load balancer.

LogFolderPath

Optional

Microsoft.Exchange.Data.NonRootLocalLongFullPath

The LogFolderPath parameter specifies the folder location for log files.

OfflineAddressBook

Optional

Microsoft.Exchange.Configuration.Tasks.OfflineAddressBookIdParameter

The OfflineAddressBook parameter specifies the associated offline address book (OAB) for the new mailbox database.

PublicFolderDatabase

Optional

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

The PublicFolderDatabase parameter specifies the associated public folder database for the new mailbox database.

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.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.