The Exchange Management Shell provides a set of cmdlets for both mailbox and public folder database management. In this recipe, we will take a look at how you can use these cmdlets to create, change, or delete mailbox and public folder databases.
The process for managing mailbox and public folder databases is nearly identical: you just need to use the appropriate cmdlet for the job. Let's start off with mailbox databases:
New-MailboxDatabasecmdlet, as shown in the following example:
New-MailboxDatabase -Name DB4 ` -EdbFilePath E:\Databases\DB4\DB4.edb ` -LogFolderPath E:\Databases\DB4 ` -Server EX01