Mailbox database associated with one or more active MailboxExport requests

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

Steve1

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

MailboxExportRequest

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

MailboxExportRequest1

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

MailboxExportRequest2

I could now proceed with the Exchange Server 2013 uninstall.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s