My PowerShell

Windows Powershell scripts, examples, tips, docs …

Restore disconnected (deleted) mailbox into folder in Exchange 2010

How to find the disconnected mailboxes
The Exchange Management Shell lets us find the disconnected mailboxes in the organization:

Get-MailboxStatistics -Server MyServer | where { $_.DisconnectDate -ne $null} | select
DisplayName,DisconnectDate, disconnectreason, databasename

The question is how to restore a disconnected (deleted) mailbox into a folder residing in an another mailbox.
To restore the deleted Users2 mailbox into the folder in User1 mailbox we would run this command:

New-MailboxRestoreRequest -SourceDatabase TEST -SourceStoreMailbox “user2″ -TargetMailbox “user1″ -AllowLegacyDNMismatch -TargetRootFolder “TARGET FOLDER”

“TARGET FOLDER” is the destination folder in User1 mailbox.

You can monitor the progress of the request with this command:

Get-MailboxRestoreRequest

Tagged as:

Leave a Response