Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2015-02-18
13
139 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.

808 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