When you move a mailbox, you move the data in the mailbox from one mailbox database to another. Be aware of the following when using Move-Mailbox:
- You can move a mailbox to a different database on the same server, to a different server within the same forest, or to a different server in another forest. (To move a mailbox from one forest to another, you must use the Move-Mailbox cmdlet.)
- You can move mailboxes from Exchange 2000/2003 servers to Exchange 2007, or from Exchange 2007 to Exchange 2000/2003.
- To move a mailbox, the account you use must be delegated as the Exchange Recipient Administrator role and the Account Operator role for the applicable Active Directory containers.
- By default, when you move a mailbox the source mailbox data is not deleted. Use -SourceMailboxCleanupOptions DeleteSourceMailbox to delete the source mailbox after the move.
- Only one instance of the Move Mailbox wizard can be run at a time from the Exchange Management Console. You can, however, run multiple instances of the Exchange Management Console and run an instance of the Move Mailbox Wizard from each.
- The move will fail if the size limit on the source mailbox exceeds the size limit of the target database. Use -MailboxSizeLimitOptions PreserveSource to set the mailbox size limit for the source mailbox on the target mailbox.
- Use the -PreserveMailboxSizeLimit switch to keep the current user mailbox settings when moving a mailbox.
- Move-Mailbox does not change the user account association. You cannot use Move-Mailbox to move the mailbox from one user to another.
- When moving mailboxes from Exchange 2007 to Exchange 2003, you might run into cases where the user rule size on the mailbox exceeds the maximum size limit for user rules on Exchange 2003 (Exchange 2007 supports 64 KB for rules, while Exchange 2003 only supports 32 KB). If the 2007 mailbox has rules larger than 32 KB, use the -IgnoreRuleLimitErrors switch to not move the rules.
While the
Move-Mailbox cmdlet is useful, it does have its limitations. The following table describes the processes used to move and merge mailboxes for various situations:
Move a single mailbox within a forest | Use the Move Mailbox wizard or the Move-Mailbox cmdlet to move a mailbox and its contents from one mailbox database to another. |
Move a mailbox across forests | You can use Move-Mailbox to move mailboxes across forests. Use the following process:
- Move the user account from the source forest to the target forest using the Active Directory Migration Tool (ADMT) version 3.0.
- Run $SourceCredential = Get-Credential to create a credential object that contains account information for the source forest.
- Run $TargetCredential = Get-Credential to create a credential object that contains account information for the target forest.
- Run the Move-Mailbox cmdlet to move the mailbox. In addition to the target database and the mailbox identity, you will need to supply the following:
- -SourceForestCredential $SourceCredential
- -TargetForestCredential $TargetCredential
- Either the -GlobalCatalog switch (to identify a target global catalog server) or the -SourceForestGlobalCatalog switch.
- The -NTAccountOU to identify the location of the user account.
When moving mailboxes across forests, be aware of the following:
- You must have the Exchange Recipient Administrator role for the Exchange organization and the Exchange Server Administrator role and local Administrators group for both the source and target forests and servers.
- You must have a domain controller running Windows Server 2003 in both the source and target domains.
- You can move from Exchange 2000/2003 to Exchange 2007, or from Exchange 2003 to Exchange 2007 across forests. You cannot move mailboxes from Exchange 2007 to Exchange 2000 across forests.
- Use -SourceMailboxCleanupOptions DeleteSourceNTAccount to delete the source user account and mailboxes if all three of the following are true:
- You are moving a user's mailbox to a new forest.
- You have already moved the user account to the new forest using the ADMT.
- You want to delete both the source mailbox and the source user account after the mailbox is moved.
|
Move an entire mailbox database on the same server | If you need to move an entire mailbox database and all of its mailboxes to a different location on the same server, use the following process:
- If necessary, run Move-StorageGroupPath or the console wizard to move the log files.
- Run Move-DatabasePath or the console wizard to move the database file.
- Run Move-Mailbox with the -ConfigurationOnly switch to change the configuration information in Active Directory so that the mailboxes all point to the new location of the database.
|
Move an entire mailbox database to a different server | If you need to move an entire mailbox database and all of its mailboxes to a different server, use the following process:
- Commit any uncommitted log files to the database.
- Use Get-StorageGroup myServer\myStorageGroup | fl LogfilePrefix to identify the log file prefix number.
- At a command prompt, run ESEUTIL /R prefix.
- Create the database on the target server.
- Set the This database can be over written by restore attribute on the target database using the console or run Set-MailboxDatabase with the -AllowFileResore switch.
- Copy the database files from the source server to the target server in the same location as the target server database files.
- Mount the target database.
- Run Move-Mailbox with the -ConfigurationOnly switch to change the configuration information in Active Directory so that the mailboxes all point to the new location of the database.
Mailbox databases can only be moved between Exchange 2007 servers in the same Exchange organization. |
Merge mailboxes across forests | When you move mailboxes across forests, the user mailbox might be unavailable for a time. To move mailboxes with minimal interruption of mail service, use the following process:
- Run Move-Mailbox to move the mailbox to the target forest. Do not delete the user account or the mailbox.
- Run ADMT to migrate the user account to the target forest. Disable access to the source mailbox. This causes the user account to use the mailbox in the target forest.
- Run Move-Mailbox with the -AllowMerge switch to merge the source mailbox with the target mailbox. Only messages that were sent or received during the transition will be merged into the target mailbox.
- Manually delete the user account and the mailbox in the source forest.
|
Move a mailbox to a different user | When you use the Move-Mailbox cmdlet, the mailbox is moved to a different location but is still associated with the same user account. If you have a mailbox for one user that you want to associate with another user:
- Run Disable-Mailbox to unlink the mailbox from the source user account or Remove-Mailbox to delete the user account.
- Run Connect-Mailbox to mail-enable the target user account and link the mailbox to the user.
Note: You cannot connect a mailbox to a user that already has a mailbox. The target user account must not be mail-enabled, and must be in the same forest as the disconnected mailbox. |
Export mailbox data to another mailbox | If you want to move mailbox data to a different user who already has a mailbox, you will need to export the mailbox contents from the source mailbox and import it into the target mailbox.
- Run the Export-Mailbox cmdlet to export and import the data in a single step.
- All data in the source mailbox is copied into a folder in the destination mailbox.
- You can export data from connected and disconnected mailboxes.
- The source mailbox and its data are not deleted. If connected, the source mailbox remains connected.
- You can only export mailbox data within a forest.
- With Exchange 2007 SP1, you can also export data to a .pst file. You can then use the Import-Mailbox cmdlet to import the .pst file into a mailbox.
|
Restore mailbox data | If a disconnected mailbox no longer exists, you can move mailbox data to the same or another mailbox by restoring the mailbox. To recover a lost mailbox:
- Create a recovery storage group.
- Create a mailbox database in the recovery storage group.
- Set the This database can be over written by restore attribute on the target database using the console or run Set-MailboxDatabase with the -AllowFileResore switch.
- Restore the mailbox database to the recovery database.
- Mount the recovery database.
- Run Restore-Mailbox to restore a mailbox from the recovery database to a target mailbox.
When restoring data, be aware of the following:
- You can restore data from one mailbox to the same mailbox or to a different mailbox.
- You can only restore data to a mailbox in the same Exchange organization.
- When restoring to the same mailbox, you can either merge data into the existing mailbox, or copy all data into a target directory. Use the -TargetFolder switch to identify the target directory. Restored data does not overwrite existing data.
- When restoring to a different mailbox, you must include the -TargetFolder switch.
|
0 komentar:
Post a Comment