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
I run so: Move-DatabasePath -Identity “MBX-DB-2016” -EdbFilePath E:\EX-Databases\MBX-DB-2016.edb -LogFolderPath L:\EX-Logs
You only need to use “Quotes” if there is a space in the DB name, but yes.
P