Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-02-18
13
Medium Priority
?
324 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 1000 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 18

Assisted Solution

by:ZENandEmailguy
ZENandEmailguy earned 1000 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

782 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