Exchange Renaming and Moving Databases

KB ID 0001229

Problem

Exchange has a habit of naming its databases as ‘Mailbox Database {Random-Number}’. This makes my OCD ‘itch’. So one of the first things I do is rename the database to something more sensible. Then I like to move the databases from the server system drive, and also relocate the log files into their own partition/drive.

Solution

Rename a Mailbox Database

Log into Exchange Admin Center > Servers > Databases  > Select the Database > Edit > Rename the Database as required > Save.

Note: You can change the database location here also, but not the log file path so I do that using the Exchange Shell.

Moving a Mailbox Database and Log Files

The syntax for mixing both the database files and the log files is;

[box]Move-DatabasePath MBX-DB-2016 -EdbFilePath E:\EX-Databases\MBX-DB-2016.edb -LogFolderPath L:\EX-Logs[/box]

You will be asked to confirm the move and that you are happy to take the database offline.

Related Articles, References, Credits, or External Links

NA

2 thoughts on “Exchange Renaming and Moving Databases

  1. I run so: Move-DatabasePath -Identity “MBX-DB-2016” -EdbFilePath E:\EX-Databases\MBX-DB-2016.edb -LogFolderPath L:\EX-Logs

Leave a Reply

Your email address will not be published. Required fields are marked *