Mailboxdatabasecopy
mailboxdatabasecopy
is a PowerShell cmdlet used to copy a mailbox database from one Exchange server to another. Here's a brief overview of the cmdlet:
Syntax:
Get-MailboxDatabase -Identity <SourceDatabase> | New-MailboxDatabaseCopy -MailboxDatabase <TargetDatabase> -CopyPriority High
Parameters:
-Identity <SourceDatabase>
: Specifies the identity of the source mailbox database to copy.-MailboxDatabase <TargetDatabase>
: Specifies the identity of the target mailbox database to copy to.-CopyPriority <High|Low>
: Specifies the priority of the copy operation. High priority means the copy operation will be performed as soon as possible, while low priority means it will be performed in the background.
Example:
To copy the mailbox database "DB01" from the source Exchange server "EX01" to the target Exchange server "EX02", you would use the following command:
Get-MailboxDatabase -Identity "DB01" -Server "EX01" | New-MailboxDatabaseCopy -MailboxDatabase "DB01" -Server "EX02" -CopyPriority High
Notes:
- The
Get-MailboxDatabase
cmdlet is used to retrieve the source mailbox database, and theNew-MailboxDatabaseCopy
cmdlet is used to create a copy of the mailbox database on the target server. - The
-CopyPriority
parameter determines the priority of the copy operation. High priority means the copy operation will be performed as soon as possible, while low priority means it will be performed in the background. - The
mailboxdatabasecopy
cmdlet can be used to copy mailbox databases between Exchange servers, but it's not recommended to use it to copy mailbox databases between different versions of Exchange. - The
mailboxdatabasecopy
cmdlet is only available in Exchange Server 2010 and later versions.