How to restore a contents of a specific folder to all mailboxes in a database

Greetings all and thanks in advance,

For various reasons, I need to restore the contents of the Notes folder on everyone's mailbox in each of my databases, from a restored backup.

I have been successful in the restoration of the Notes folder for a pair of individual's mailboxes using this syntax:

New-MailboxRestoreRequest -sourcedatabase rdb-02 -sourcestoremailbox "User Display Name" -targetmailbox User@Company.com -IncludeFolders "#Notes#"

How would/could I modify this to restore the notes folder for everyone in -SourceDataBase rdb-02?

Thanks,

Willis

June 19th, 2015 2:31pm

Check out this detailed article from Mike Pfeiffer and search for the words Bulk Restores in the article and it will take you to the example of how to accomplish this  http://mikepfeiffer.net/2011/07/restoring-mailbox-data-from-a-recovery-database-in-exchange-2010-sp1/
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 4:35pm

Hi Troy,

Thanks for the reply and link.  The command isn't anything like what I would have expected.

Scenario: 

Bulk Restores

You might find yourself in a situation where you need to restore data from all mailboxes in a recovery database. For example, lets say you need to restore the Contacts folder for all of your mailboxes.

foreach($mailbox in Get-MailboxStatistics -Database RecoveryDB) {New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox $mailbox.DisplayName -TargetMailbox $mailbox.DisplayName -SourceRootFolder Notes}

Specifically I guess because the "-include' switch is not present and the folder is not surrounded

by #pound# signs.

I'll post back once I get the nerve to run the command.

Thanks again,

Willis

June 19th, 2015 8:22pm

Happy to assist and yeah I hear ya, sometimes the commands dont make sense, however mike Pfeiffer is a pretty smart guy so if he says it works it probably will.  Only caveat is that his commands were from a 2010 instance although I think it should still work.

Either way please let me know the results and if need be I can look into it further

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 8:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics