This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
microsoft:excange_2013_cmd_move_database [2017/01/12 11:50] admin |
microsoft:excange_2013_cmd_move_database [2017/01/12 11:51] (current) admin |
||
---|---|---|---|
Line 25: | Line 25: | ||
To move an Exchange 2013 database named “Mailbox Database 1” to a new EDB file location of **E:\Mailbox Database 1** and a new logs folder of **F:\Mailbox Database 1** the following command is used. | To move an Exchange 2013 database named “Mailbox Database 1” to a new EDB file location of **E:\Mailbox Database 1** and a new logs folder of **F:\Mailbox Database 1** the following command is used. | ||
+ | <code bash> | ||
+ | [PS] C:\>Move-DatabasePath "Mailbox Database 1" -EdbFilePath "E:\Mailbox Database 1\Mailbox Database 1.edb" -LogFolderPath "F:\Mailbox Database 1" | ||
+ | Confirm | ||
+ | Are you sure you want to perform this action? | ||
+ | Moving database path "Mailbox Database 1". | ||
+ | [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y | ||
+ | |||
+ | Confirm | ||
+ | To perform the move operation, database "Mailbox Database 1" must be temporarily dismounted, which will make it | ||
+ | inaccessible to all users. Do you want to continue? | ||
+ | [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y | ||
+ | </code> | ||
+ | |||
+ | To check whether the database is mounted and accessible again you can run the following commands. | ||
+ | |||
+ | <code bash> | ||
+ | [PS] C:\>Get-MailboxDatabase -Status "Mailbox Database 1" | Select Name,Mounted | ||
+ | |||
+ | Name Mounted | ||
+ | ---- ------- | ||
+ | Mailbox Database 1 True | ||
+ | |||
+ | [PS] C:\>Test-MAPIConnectivity -Database "Mailbox Database 1" | ||
+ | |||
+ | MailboxServer Database Result Error | ||
+ | ------------- -------- ------ ----- | ||
+ | E15MB1 Mailbox Database 1 Success | ||
+ | </code> | ||