Managing the mailbox databases

The Exchange Management Shell provides a set of cmdlets for mailbox database management. In this recipe, we will take a look at how you can use these cmdlets to create, change, or delete mailbox databases.

How to do it...

The process for managing mailbox databases is pretty straightforward. We'll start with creating a new mailbox database:

  1. To create a mailbox database, use the New-MailboxDatabase cmdlet, as shown in the following example:
    New-MailboxDatabase -Name DB4 `
    -EdbFilePath E:\Databases\DB4\DB4.edb `
    -LogFolderPath E:\Databases\DB4 `
    -Server EX01
    
  2. You can mount the database after it has been created using the Mount-Database cmdlet:
    Mount-Database -Identity DB4
    
  3. The name of a database can be changed using the ...

Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.