Merge Mailboxes into Currently Enabled Mailbox
Hi There, Is there any way to merge mailboxes using powershell in such a way that you merge FROM the target DB into the currently enabled mailbox rather than the usual way of merging INTO the target FROM the currently enabled mailbox. The standard syntax is something like this: get-mailbox | move-mailbox -TargetDatabase "Mailbox Database" -AllowMerge $true Using this syntax you move from the enabled mailbox to a new one on a different DB store. For reasons that are way too complicated to explain we can't do it this way and instead need to merge from a restored DB into the DB that all our users are currently using.
January 13th, 2010 6:55am
So you want to leave the current mailbox where it is, but move additional data into it?http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx Export-Mailbox Or if it's a restored mailbox in a recovery storage group: http://technet.microsoft.com/en-us/library/bb125218(EXCHG.80).aspx Restore-MailboxThis is for Exchange 2007. There are similar cmdlets for Exchange 2010.
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2010 8:34am
Hi There, Export-mailbox looks good but how can i pipe to it a list of mailboxes on the "source" database therefore forcing it to export from a database that has no active mailboxes on it - by active I mean there are perfectly fine mailboxes on the DB but the exchange "configuration" is not pointing to them so if i, for example, do a get-mailbox it returns all the mailboxes on the destination DB rather than the source DB - if you get what I mean.
January 13th, 2010 2:10pm
Went with Restore-mailbox in the end. Thank you sooooo much, you are a real life saver.
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2010 6:24am
Glad to hear it worked. Sorry I couldn't reply to your followup earlier. Yes, if it's a restored database without mailboxes directly 'connected' to accounts then restore-mailbox is designed for that.
January 14th, 2010 7:46am