Issue
When uninstalling an Exchange Server 2013 from the Exchange Organisation, the readiness check threw up the following error.
Error:
Uninstall can’t continue. Errors:
This mailbox database is associated with one or more active MailboxExport requests. To get a list of all MailboxExport requests associated with this database, run Get-MailboxExportRequest | ?{ $_.RequestQueue -eq “<Database ID>” }. To remove a MailboxExport request, run Remove-MailboxExportRequest <Recipient ID\Request Name>. It was running the command ‘Remove-MailboxDatabase ‘CN=DB01,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=x500,DC=co,DC=uk’ -whatif’.
This mailbox database is associated with one or more active MailboxExport requests. To get a list of all MailboxExport requests associated with this database, run Get-MailboxExportRequest | ?{ $_.RequestQueue -eq “<Database ID>” }. To remove a MailboxExport request, run Remove-MailboxExportRequest <Recipient ID\Request Name>. It was running the command ‘Remove-MailboxDatabase ‘CN=DB02,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=x500,DC=co,DC=uk’ -whatif’.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.UnwillingToRemoveMailboxDatabase.aspx
Investigation
The Get-MailboxExportRequest wasn’t available to me as my admin account isn’t a member of the “Mailbox Import Export” role.
Get-MailboxExportRequest : The term ‘Get-MailboxExportRequest’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-MailboxExportRequest
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-MailboxExportRequest:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I added my admin account to the “Mailbox Import Export” role by running the following PowerShell command.
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User admin.steveb
Close the PowerShell window & launch a new one.
Resolution
Now I can look at the Mailbox Export Requests that are preventing the Exchange Server 2013 uninstall, and remove them.
Run the following PowerShell command to list the Mailbox Export Requests.
Get-MailboxExportRequest
I needed to remove all of the Mailbox Export Requests, this was done with the following PowerShell command.
Get-MailboxExportRequest | Remove-MailboxExportRequest -Confirm:$false
I could now proceed with the Exchange Server 2013 uninstall.
Thanks Steve. This resolved the issue and helped me to remove the database. I spent a lot of time but after following your simple instructions I am able to proceed.
LikeLike