2009-10-02

Can't uninstall Exchange 2010 RC, must remove public folder replicas first.

When trying to uninstall Exchange 2010 RC I ecounter this situation

Mailbox Role Prerequisites

Failed

Error:

Uninstall cannot continue. Database 'Public Folder Database 1166479595': The public folder database "Public Folder Database 1166479595" contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409&clcid=0x409.Recommended Action: http://go.microsoft.com/fwlink/?linkid=30939&l=en&v=ExBPA.4&id=b6e3b32a-8848-46cb-9567-72288ac15f60

When trying to use cmdlet to remove public folder replicas
Get-PublicFolder -Server "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue

I get the error:
"Multiple MAPI public folder trees were found".

What I did was opened ADSI Edit and went to
Configuration [.contoso.com]
CN=Configuration,DC=contoso,DC=com
CN=Services
CN=Microsoft Exchange


then in the details pane right clicked "CN=Public Folders" and changed parameter of "msExchPFTreeType" from "1" to "<not set>" (by choosing Edit and clicking Clear).

Then restarted Microsoft Exchange Information Store service and rerun cmdlets:

Get-PublicFolder -Server "\" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue
and
Get-PublicFolder -Server "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited Remove-PublicFolder -Server -Recurse -ErrorAction:SilentlyContinue

Ttried to uninstall Exchange server again. This time prerequisites passed and I uninstalled successfully.

Links: http://msexchangeteam.com/archive/2007/07/09/445967.aspx

2 comments:

  1. MS Exchange is very complicated tool, and sometimes many people have other unpleasant problems with it. Luckily couple weeks ago I by chance noticed a very effective tool, which should help in this problem or some other - restore pst to exchange 2003.

    ReplyDelete
  2. Thank you for you post, it help me a lot.

    ReplyDelete