Restore all mailboxes from RecoveryDB

Андрей Михалевский 3,401 Reputation points
2021-03-11T13:31:39.067+00:00

Hello. I have example:
New-MailboxRestoreRequest -SourceDatabase RECDB -SourceStoreMailbox "Bill" -TargetMailbox Bill.@Anonymous .com
How can I restore all mailboxes? I don't know Powershell well. Can I have an example?

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,821 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 153.4K Reputation points MVP
    2021-03-11T13:50:16.05+00:00
    Foreach ($mailbox in Get-MailboxStatistics -Database RDB)
    
    {
    
    New-MailboxRestoreRequest -SourceDatabase RDB -SourceStoreMailbox $mailbox.DisplayName -TargetMailbox $mailbox.DisplayName
    
    }
    

    https://www.azure365pro.com/how-to-restore-exchange-databases-from-a-storage-failure-exchange-200720102013/

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.