Introduction.

On the previous article, we have finished deployeing the Exchange 2019 server. Now, we will continue to configure the basic setting on the Exchange server.

Rename and Move Mailbox database:

During the installation, Exchange provisions a new mailbox with random name like this: "Mailbox Database 1237333779" and store the database file on C:\ drive. If you want to keep to use this default Mailbox databases, we need to rename and move the mailbox databses to another drive.

Check the current mailbox database and log location.

Get-MailboxDatabase | Format-List Name, EdbFilePath, LogFolderPath

Rename and move the Mailbox database to another drive.

Set-MailboxDatabase "Mailbox Database 1237333779" -Name "DB01"
Move-DatabasePath "DB01" -EdbFilePath "E:\DB01\DB01.edb" -LogFolderPath "F:\DB01"
Get-MailboxDatabase | Format-List Name, EdbFilePath, LogFolderPath

If you install the Exchange server on the exisitng Exchange environment and have a plan to migrate them. You need to migrate all Usermailbox, system, and arbitration mailbox first before able to take down the old mailbox databases.

Migration Exchange

  1. Get-Mailbox name and path: Get-MailboxDatabase | fl Name,EdbFilepath,LogFolderpath
  2. Change DB name: Set-MailboxDatabase "Mailbox Database 1521029410" -Name "DB01".
  3. Move DB to correct disk: Move-DatabasePath "DB01" -EdbFilePath "D:\DB01\DB01.edb" -LogFolderPath "D:\DB01\".
  4. Migrate single mailbox Get-Mailbox usermailbox | New-MoveRequest -TargetDatabase "DB01"
  5. To migrate multple mailbx, you can use .csv batch, or creating a list on txt. Avoid to move lots of mailboxes at one time
  6. Check migration progcess Get-MoveRequest and Get-MoveRequestStatistics
  7. Check Arbitration Maibox Get-Mailbox Migration* -Arbitration | ft Name,AdminDisplayVersion
  8. Move Arbitration Mailbox New-MoveRequest "Migration.8f3e7716-2011-43e4-96b1-aba62d229136" -TargetDatabase "DB01"

Create new mailbox user.

$password = Read-Host "Enter password" -AsSecureString
New-Mailbox -UserPrincipalName [email protected] -Alias nina -Database "DB01" -Name NinaNini -OrganizationalUnit Users -Password $password -FirstName Nina -LastName Nini -DisplayName "Nina Nini" -ResetPasswordOnNextLogon $true

To be Continued..