Exchange 2010 Mailbox Recovery - Erroring

Posted on 2011-10-16
Last Modified: 2014-02-01
I have restored an entire exchange database into a Recovery database.  I have mounted this database to the exchange server and it is showing as online.

I have tried using the Restore-Mailbox and New-MailboxRestoreRequest commands and both error.  Attached is the Restore-Mailbox command with errors.

I am hoping that someone will be able to provide some assistance on this issue.  I need to restore this mailbox as the terminated user deleted all their emails before they left.
[10/17/2011 00:52:03.0895] [0] Executing Command: '        $scriptCmd = {& $wrappedCmd @PSBoundParameters }'
[10/17/2011 00:52:03.0910] [0] Searching objects "RecoveryDB" of type "MailboxDatabase" under the root "$null".
[10/17/2011 00:52:03.0910] [0] Previous operation run on domain controller ''.
[10/17/2011 00:52:03.0926] [0] Current ScopeSet is: { Recipient Read Scope: {{, }}, Recipient Write Scopes: {{, }}, Configuration Read Scope: {{, }}, Configuration Write Scope(s): {{, }, }, Exclusive Recipient Scope(s): {}, Exclusive Configuration Scope(s): {} }
[10/17/2011 00:52:03.0926] [0] Searching objects "Exchange Restore" of type "ADUser" under the root "$null".
[10/17/2011 00:52:03.0926] [0] Previous operation run on global catalog server 'ARS-DC1'.
[10/17/2011 00:52:03.0926] [0] Processing object " Restore".
[10/17/2011 00:52:03.0957] [0] Searching objects "Mailbox Database 0511189085" of type "MailboxDatabase" under the root "$null".
[10/17/2011 00:52:03.0957] [0] Previous operation run on domain controller ''.
[10/17/2011 00:52:03.0973] [0] Searching objects "Melanie Griffiths" of type "MailboxStatistics" under the root "RecoveryDB".
[10/17/2011 00:52:04.0222] [0] Previous operation that ran on: ''.
[10/17/2011 00:52:04.0253] [0] Admin Audit Log: Entered Handler:Validate.
[10/17/2011 00:52:04.0253] [0] Admin Audit Log: Exited Handler:Validate.
[10/17/2011 00:52:06.0375] [0] Resolved current organization: .
[10/17/2011 00:52:06.0375] [0] Admin Audit Log: Entered Handler:OnComplete.
[10/17/2011 00:52:06.0422] [0] Admin Audit Log: Exited Handler:OnComplete.
[10/17/2011 00:52:06.0422] [0] Ending processing &
[10/17/2011 00:52:06.0422] [0] [exchangerestore] The operation has started.
[10/17/2011 00:52:06.0422] [0] [exchangerestore] Approving object.
[10/17/2011 00:52:06.0422] [0] [exchangerestore] The operation has finished.
[10/17/2011 00:52:06.0422] [0] [exchangerestore] The operation has started.
[10/17/2011 00:52:06.0422] [0] [exchangerestore] Approving object.
[10/17/2011 00:52:06.0734] [0] [exchangerestore] Opening source mailbox.
[10/17/2011 00:52:06.0734] [0] [exchangerestore] Trying to open mailbox by GUID: 
	szServerLegacyDN: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=ARS-DC1
	pguidMdb: {6E4ABA6F-30C5-4D05-A883-1FC7ED7EAB69}
	pguidMailbox: {FF5FF5A9-8A2F-4070-A84D-7655972E1F7C}
[10/17/2011 00:52:06.0734] [0] Admin Audit Log: Entered Handler:OnComplete.
[10/17/2011 00:52:06.0781] [0] Admin Audit Log: Exited Handler:OnComplete.
[10/17/2011 00:52:06.0781] [0] [ERROR] Error was found for Exchange Restore ( because: Error occurred in the step: Opening source mailbox. Failed to open mailbox by GUID with error: The operation failed., error code: -1056749260
[10/17/2011 00:52:06.0781] [0] [exchangerestore] The operation has finished.

Open in new window

[PS] C:\Windows\system32>Restore-Mailbox -Identity "Exchange Restore" -RecoveryDatabase RecoveryDB -RecoveryMailbox "Mel
anie Griffiths" -TargetFolder RestoredData

Are you sure you want to perform this action?
Recovering mailbox content from mailbox 'Melanie Griffiths' in the recovery database 'RecoveryDB' to the mailbox for
'Exchange Restore ('. This operation may take a long time to complete.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
Error was found for Exchange Restore ( because: Error occurred in the step: Opening source mailbox
. Failed to open mailbox by GUID with error: The operation failed., error code: -1056749260
    + CategoryInfo          : InvalidOperation: (0:Int32) [Restore-Mailbox], RecipientTaskException
    + FullyQualifiedErrorId : BF7FB5B,Microsoft.Exchange.Management.RecipientTasks.RestoreMailbox

RunspaceId                       : 52f0191b-dddf-4653-aa5c-4993c7eb499a
Identity                         : Restore
DistinguishedName                : CN=Exchange Restore,CN=Users,DC=aerison,DC=com
DisplayName                      : Exchange Restore
Alias                            : exchangerestore
LegacyExchangeDN                 : /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipien
                                   ts/cn=Exchange Restore393cf7f6
PrimarySmtpAddress               :
SourceServer                     :
SourceDatabase                   : RecoveryDB
SourceGlobalCatalog              : ARS-DC1
SourceDomainController           :
TargetGlobalCatalog              : ARS-DC1
TargetDomainController           :
TargetMailbox                    : Restore
TargetServer                     :
TargetDatabase                   : Mailbox Database 0511189085
MailboxSize                      : 2.252 GB (2,418,007,505 bytes)
IsResourceMailbox                : False
SIDUsedInMatch                   :
SMTPProxies                      :
SourceManager                    :
SourceDirectReports              :
SourcePublicDelegates            :
SourcePublicDelegatesBL          :
SourceAltRecipient               :
SourceAltRecipientBL             :
SourceDeliverAndRedirect         :
MatchedTargetNTAccountDN         :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList            :
TargetNTAccountDNToCreate        :
TargetManager                    :
TargetDirectReports              :
TargetPublicDelegates            :
TargetPublicDelegatesBL          :
TargetAltRecipient               :
TargetAltRecipientBL             :
TargetDeliverAndRedirect         :
Options                          : Default
SourceForestCredential           :
TargetForestCredential           :
TargetFolder                     : \RestoredData\Recovered Data - Melanie Griffiths - 10/17/2011 08:52:04
PSTFilePath                      :
RecoveryMailboxGuid              : ff5ff5a9-8a2f-4070-a84d-7655972e1f7c
                                   TS/CN=MELANIE GRIFFITHS
RecoveryMailboxDisplayName       : Melanie Griffiths
RecoveryDatabaseGuid             : 6e4aba6f-30c5-4d05-a883-1fc7ed7eab69
StandardMessagesDeleted          : 0
AssociatedMessagesDeleted        : 0
DumpsterMessagesDeleted          : 0
MoveType                         : Restore
MoveStage                        : Move
StartTime                        : 17/10/2011 08:52:06
EndTime                          : 17/10/2011 08:52:06
StatusCode                       : -1056749260
StatusMessage                    : Error occurred in the step: Opening source mailbox. Failed to open mailbox by GUID w
                                   ith error: The operation failed.
ReportFile                       : C:\Program Files\Microsoft\Exchange Server\V14\Logging\MigrationLogs\restore-Mailbox
ServerName                       :

Open in new window

Question by:ddawes
    LVL 6

    Expert Comment

    by:Em Man
    what is the value of the HomeMDB?

    Use ADSIEdit and check if it has the attribute.

    CN=Microsoft Exchange
    CN=Administrative Groups
    CN=Exchange Administrative Group (<ID>)
    LVL 1

    Author Comment

    In Properties of CN=Databases, there is no property HomeMDB.  Should there be and what should it be set to?
    LVL 6

    Expert Comment

    by:Em Man
    hold on... checking on my Exchange 2010 Virtua Testl Machine.

    What about the Property for that username?
    are their any HomeMDB?
    LVL 6

    Expert Comment

    by:Em Man
    *are there any HomeMDB on the users Mailbox Attribute Editor?
    LVL 1

    Author Comment

    Are you able to provide some more information as to what I am checking?  I haven't used ADSI Edit much.
    LVL 6

    Expert Comment

    by:Em Man
    as I can see on the log, there is some problem with "MELANIE GRIFFITHS"

    it could be that some attributes here is missing or incorrect.
    LVL 6

    Expert Comment

    by:Em Man
    I found this similar issue, not sure if you tried this one already as I cannot replicate it from my virtual test machine.

    New-MailboxRestoreRequest -SourceDatabase "INSEXMB2RDB1A" -SourceStoreMailbox "Test User" -TargetMailbox mailrecover1

    -TargetRootFolder "Test" -AllowLegacyDNMismatch

    FYI, I did get the error below when I didn't use the -AllowLegacyDNMismatch parameter, since the Recovery Database is a pre SP1 backup and the database I'm restoring to is post SP1:

    "Source mailbox's legacyExchangeDN '/O=COMPANY/OU=SITE/CN=RECIPIENTS/CN=TESTUSER' doesn't match the legacyExc
    hangeDN or X500 proxy for target mailbox 'mailrecover1A'. Use the 'AllowLegacyDNMismatch' switch if you want to allow this operation."


    More here:
    LVL 1

    Author Comment

    I have also tried using the New-MailboxRestoreRequest command already and it also fails.  Gets to 11% complete then status changes to Failed.

    Melanie's account has the homeMDB attribute with a value of "CN=Mailbox Database 0511189085,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=aerison,DC=com".  That looks like the correct database her account is assigned to."

    Any other ideas? Really need to get this sorted.
    LVL 6

    Expert Comment

    by:Em Man
    hope this one helps found this one on Microsoft site, not sure if you already seen this.

    Restore as normal

    New-StorageGroup -Server "xxxxxx" -LogFolderPath "V:\RSG\logs" -Name "Recovery Storage Group" -SystemFolderPath "V:\RSG\system" –Recovery

    New-MailboxDatabase -MailboxDatabaseToRecover "xxxxxx" -StorageGroup "xxxxxx\Recovery Storage Group" -EDBFilePath "V:\RSG\RSGDB1.edb"

    Ensure user is in the restored RSG

    Mount RSG in EMC DR and gather merge or copy information to view mailboxes to ensure mailbox is there

    Get list of users in mailbox datase and ensure the mailbox is still there:

    Get-MailboxDatabase "Recovery Storage Group\xxxxxx" | Get-MailboxStatistics >c:\recover.txt


    Create a new datasbase

    Create a SG on V drive

    Create a database with same name as where the user was

    Allow the database to be overwritten by a restore

    Suspend SG replication


    Move edb to new database

    Dismount RSG database

    Ensure new database is also dismounted

    Copy RSG edb file to new database location

    Rename edb file to original name


    Ensure user is in the new database

    Mount the new database

    Get database name:


    Get list of users in mailbox datase and ensure the mailbox is still there:

    Get-MailboxDatabase "xxxxxx\xxxxxx" | Get-MailboxStatistics >c:\recover2.txt


    Reconnect mailbox and export

    In EMC go to the new database under “Disconnect Mailbox” and ensure the user is there

    Reconnect the user to an account without a mailbox

    Open the mailbox

    If OK export content to PST file


    Clean up

    Remove-MailboxDatabase –identity “xxxxxx\Recovery Storage Group\xxxxxx”

    Remove-StorageGroup –identity “xxxxxx\Recovery Storage Group”
    LVL 1

    Author Comment

    Are you sure this article relates to Exchange 2010?

    I was reading "" a little while back and remembered seeing the comment "This also means Exchange 2010 does not have the concept of storage groups any longer. Now there are databases and a log stream associated with each database".
    LVL 6

    Expert Comment

    by:Em Man
    nope, this is a 2007 Exchange Server and has similar issues with your concern.
    however this only to give you idea for possible resolution.

    Been trying to replicate this problem since I have both Exchange 2003 and 2010 on my virtual machines, and can't really replicate this kind of error.
    LVL 6

    Expert Comment

    by:Em Man

    sorry for the delay. any updates?

    I've been reading the logs and it the terminated users has a 2GB size of mailbox.

    Just wild guess, what is your Storage Limit Policy for the DB where you need to store this employee?
    also does the account active in AD is Active?
    LVL 1

    Accepted Solution

    No updates on the issue.  Still experiencing the same issue.

    Not sure how to go forward with the suggestion above - The commands obviously don't work with Exchange 2010 and I'm not sure what the equivilent commands are.

    We do not have any storage limits set on the "Mailbox Database 0511189085" which is where the Exchange Restore account is located.

    We have not deleted Melanie's account from AD, so that still exists as well.
    LVL 1

    Author Closing Comment

    No resolution found for issue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now