I have faced the below Error While added a Mailbox Database copy to one of our servers
This database was already exist as copy on the same server but removed for maintenance operation
Registry key has subkeys and recursive removes are not supported by this method.
An unexpected error has occurred and a Watson dump is being generated: Registry key has subkeys and recursive removes are not supported by this method.
Exchange Management Shell command attempted:
Add-MailboxDatabaseCopy -Identity ‘db1’ -MailboxServer ‘ServerName’ -ActivationPreference ‘2’
Elapsed Time: 00:00:00
Workaround: Delete the DumpsterInfo key, as shown below.
- Identify the GUID of the database that is being added using this command:Get-MailboxDatabase DB1 | fl name,GUIDThe result:
Name : DB1
Guid : 8d3a9778-851c-40a4-91af-65a2c487b4cc
- On the server specified in the add command, using the database GUID identified, remove the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Replay\State\<db-guid>\DumpsterInfoThe GUID identified in this case is 8d3a9778-851c-40a4-91af-65a2c487b4cc. With this information you can now export and delete theDumpsterInfo key on the server where you are attempting to add the mailbox database copy. This can be easily done using the registry editor, but if you have more than a handful of DAG members, this is best automated using the Shell.This example removes the DumpsterInfo key from the 8d3a9778-851c-40a4-91af-65a2c487b4cc key:
To automate this across all servers in your organization, use the DeleteDumpsterRegKey.ps1 script.
This is a know issue with SP1, check issue 8 on the below URL