Friday, September 14, 2012

Exchange 2010 Error: Registry key has subkeys and recursive removes are not supported by this method

Thank you to Paul Cunningham for this Post.

After a prolonged network failure, my DAG registers error in its Database synchronization. Attempts to Suspend also failed (thus I am not able to Resume the sync).

When attempting to remove the Database (and Add/Re-create the Database copy), the following error appears:

"Registry key has subkeys and recursive removes are not supported by this method"

This error seems to be caused by an orphaned registry key in the/each Mailbox server under the replication replay's key.

The following method, carried out on *each* Mailbox server that requires the Database Copy addition resolves the above issue:

1. In PowerShell, run:

'Get-MailboxDatabase "Database Name" | fl guid'
 - This will print out the Database's GUID value

2. In PowerShell, run:

'Remove-Item HKLM:\Software\Microsoft\ExchangeServer\v14\Replay\State\\DumpsterInfo'

No comments: