Solved

Exchange 2010 uninstallation failed: The public folder database contains folder replicas.

Posted on 2015-02-18
13
78 Views
Last Modified: 2016-01-02
I have two exchange servers, A and B.  We have fully migrated to Office365 so neither server holds any functioning mailboxes.

I am trying to uninstall Exchange from B currently and am getting the error:

Uninstall cannot continue. Database Public Folder 2; The public folder database contains folder replicas.  Before deleting the public folder database remove the folders or move the replicas to another PF database.

Ok here's the problem, Yesterday I removed every singe folder except Internet Newsgroups using the Public Folder Management Console.  Now granted I can only choose the server and not the specific public folder database (which is pretty stupid) however when opening the PFMC I expand Default Public Folders, there is only Internet Newsgroups.

Expanding System Public Folders there is quite a lot of non Public Folder i.e. user created folders.  I don;t *think* im supposed to remove those, but I could be wrong I guess.

Now running Get-PublicFolder from the shell I get 'IPM Sub_TREE' returned and that's it.

I'm friggin lost here and I really, really need to re-purpose this hardware like three days ago.
0
Comment
Question by:Ben Hart
  • 9
  • 3
13 Comments
 
LVL 63

Assisted Solution

by:Simon Butler (Sembee)
Simon Butler (Sembee) earned 250 total points
ID: 40618709
What does get-publicfolderstatistics return?
You have probably not removed the system folders.
Follow guidance on TechNet for removing the last public folder database, that will allow you to reach the point where you can drop the public folder database. If you do that before you attempt the uninstall then you will find the uninstall goes through much cleaner.

Simon.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40618786
No I did not remove the system public folders.. All the Eforms Registry, Events Root, Offline Address Book, OWAScratchPad{xxxxxx}, etc.

I'll give her a shot, Thanks SImon.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40618814
Get-PublicFolderStatistics did display a lost of system folders.  

https://technet.microsoft.com/en-us/library/bb201664.aspx?f=255&MSPPError=-2147217396
Did not help.

If I try [PS] C:\Windows\system32>get-publicfolder -server mi-2k8-exch "\Non_Ipm_Subtree" -recurse -resultsize:unlimited | remove
-publicfolder -server mi-2k8-exch -recurse

I get nothing but errors beginning with:
Modification of the '\NON_IPM_SUBTREE' folder is not allowed.
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-PublicFolder], ModificationDisallowedException
    + FullyQualifiedErrorId : 342151C2,Microsoft.Exchange.Management.MapiTasks.RemovePublicFolder

Modification of the '\NON_IPM_SUBTREE\EFORMS REGISTRY' folder isn't allowed.
    + CategoryInfo          : NotSpecified: (1:Int32) [Remove-PublicFolder], ModificationDisallowedException
    + FullyQualifiedErrorId : 44DF4377,Microsoft.Exchange.Management.MapiTasks.RemovePublicFolder
0
 
LVL 18

Assisted Solution

by:ZENandEmailguy
ZENandEmailguy earned 250 total points
ID: 40618910
I've not done what you're trying but allow me to think out loud for a second...It would seem you'd need to prune the folders under NON_IPM_SUBTREE before trying to remove the SUBTREE itself due to the child/parent folder structure.  Can you try the command above and put the "\Non_Ipm_Subtree\EFORMS REGISTRY" in and see if that makes a difference.

I assume your credential logged in is a member of the Organizational Management Exchange group giving you keys to the kingdom?

Scott
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40618928
Using the PFMC I am unable to remove any more folders.  EFORMS Registry, Events Root, three diff OABs, and 2 Schedule+Free Busy subfolders.  I'm logged in as a super, duper Enterprise/Organization admin.  EFORMS REGISTRY is empty by the way.. but removing errors out with a: Modification of the \NON_IPM_SUBTREE\EFORMS REGISTRY folder isnt allowed.
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 40619002
This is the command that you should be using:
Get-PublicFolder -Server Server "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server Server -Recurse -ErrorAction:SilentlyContinue

The errors are to be expected, but the process should continue as that is what the last switch does.
It can also take a little while for the folders to remove completely.

Simon.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 14

Author Comment

by:Ben Hart
ID: 40619862
I'll run it again just to be safe.. but that's the command I found and ran earlier.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40619867
Yup.. This is what it says after that command:

[PS] C:\Windows\system32>get-publicfolderstatistics

Name                                                                      ItemCount                                                       LastAccessTime
----                                     ---------                                                       --------------
EX:/o=GROEN/ou=Exchange Administrativ...    230                                                       2/18/2015 7:03:37 PM
EX:/o=GROEN/ou=Exchange Administrativ...    0                                                         2/19/2015 9:00:42 AM
EX:/o=GROEN/ou=GROEN-01                             174                                                       2/18/2015 7:03:37 PM
Internet Newsgroups                                           0                                                         2/19/2015 9:01:57 AM
Nntp Control Folder                                             0                                                        10/11/2011 8:01:08 AM
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40619901
Retrying the uninstall still says it can't remove that Public Folder2 database because of replicas..

:(
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 40620872
You cannot uninstall Exchange until get-publicfolderstatistics returns no results.

Simon.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 40625647
I understand that Simon.. Everything I try doesn't work in removing those replicas, or crap even displaying what/where they are.
0
 
LVL 14

Accepted Solution

by:
Ben Hart earned 0 total points
ID: 40625661
Deleting them in ADSIEDIT worked though.
0
 
LVL 14

Author Closing Comment

by:Ben Hart
ID: 41393091
Because using ADSIEDIT actually worked.. the other guys helped pointing me towards what needed to be removed.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now