how to move an Exchange 2013 Database

Issue:  You need to move an Exchange 2013 mailbox database to a different path.
Background: Exchange 2013 databases can only be moved using the Exchange Management Shell (EMS).
Solution: Move the database using the Move-DatabasePath EMS command:
1) Review the names of your databases and copy the name of the database you’d like to move.  You can view your databases by typing get-mailboxdatabase in Exchange Management Shell or under Servers > Databases in Exchange Admin Center
2) Open Exchange Management Shell and use the Move-DatabasePath command to move the database
Example:
Move-DatabasePath “Mailbox Database 0490718771” -EdbFilePath “N:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0490718771\Mailbox Database 0490718771.edb” -LogFolderPath “L:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0490718771\”
move-databasepathmove-databasepath-progress

Copy the example command to a text file and do a find-and-replace for “Mailbox Database 0490718771” with your database name.  Replace the L: and N: drive letters with your desired targets.

The above process is often used for moving Exchange 2013’s default database that is installed on the C:\ of the server by default.  After you have moved the default database, a common next step is to create new mailbox databases.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.