Exchange 2007 – Uninstall Error – Public Folder Database

KB ID 0000227 Dtd 28/04/10

Problem

While trying to uninstall Exchange 2007 you see the following error.

"Uninstall cannot continue: Database 'Public Folder Database': The public folder database "server namestorage groupdatabase" contains folder replicas. Before deleting the public folder database remove the folders or remove the replicas to another public folder database."

contains folder replicas

WARNINIG: The following procedure assumes you want the Public Folders GONE - make sure any information you require within them is either backed up or moved to another server.

Solution

1. Click Start > All Programs > Microsoft Exchange Server 2007 > Exchange Management Shell.

2. Issue the following command, (Replace {name of server} with your own server name).

Get-PublicFolder -Server {name of server} "" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server {name of server} -Recurse -ErrorAction:SilentlyContinue

3. Enter Y for yes if Prompted. (enter your own server name).

remove public folders

4. Issue the following command, (Replace {name of server} with your own server name).

Get-PublicFolder -Server {name of server} "Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server {name of server} -Recurse -ErrorAction:SilentlyContinue

5. Enter Y for Yes if prompted.

public folders remove recursively

6. Re-attempt the uninstall.

or in EXTREME situations (sometimes it refuses to delete no matter what you do) run ADSIedit and remove it from CN=Configuration,CN=Services, CN=Microsoft Exchange, CN={organisation name i.e First Organisation}, CN=Administrative Groups, CN={Administrative Group name}, CN=Servers, CN={servername}, CN=Information Store, CN={Storage Group Name}, CN={Public Folder Database Name} THEN REBOOT

remov epublic folder with adsiedit

Related Articles, References, Credits, or External Links

NA

Author: Migrated

Share This Post On