Unable to uninstall exchange 2007
I am trying to uninstall a Exchange 2007 server that is in the same forest as a Exchange 2003 server. I'm getting the following error:-------------------Mailbox Role PrerequisitesFailedError:Uninstall cannot proceed. Database 'Public Folder Database': The public folder database specified contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database.Recommended Action: http://go.microsoft.com/fwlink/?linkid=30939&l=EN&v=ExBPA.3&id=b6e3b32a-8848-46cb-9567-72288ac15f60--------------------I can see that its some of the system folders that are set up to replicate with the Exchange 2003 server. But I can't find the Exchange Management Shell command to remove the replicas.
September 15th, 2006 1:52am
Take a look at the set-publicfolder cmdlet. One of the options that can be set is the replicas.
If you do a get-publicfolder command, this should list all public folders that exist on your 2007 server.
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2006 9:29pm
Hello,
I'm having the same problem.
Did you resolved the issue? How?
January 3rd, 2007 12:05am
I am having the exact same problem. Have tried the command shell
but receive the same error. I read someplace folks using ADSI
edit to remove them but haven't seen a clean description of that yet.
Help would be greatly appreciated.
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2007 4:47am
Well, using ADSIEdit certainly can be used, but you should do so carefully. I've done this on my system when I experienced this issue, but only because I knew that there were no replicas of any folders, and because it was a VM.
If you choose to do this via ADSIEdit, you would navigate to the location of the Public Folder Store, and simply delete it there. As an example location, in ADSIEdit, you would go to Configuration, Configuration, Services, Microsoft Exchange, First Organization, Administrative Groups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage Group. Then on the right hand pane, you would highlight the Public Folder Store and Delete it. This performs basically the same function as the cmdlet does, or removing it via the Exchange Management Console.
January 11th, 2007 7:11pm
Also, as to the original question, if you are just trying to remove replicas, you can also do that via the Exchange 2003 server. Simply remove the 2007 server from the replica list and see if that helps.
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2007 7:15pm
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorAction:SilentlyContinue
Get-PublicFolder -Serverxxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Serverxxxxx -Recurse -ErrorAction:SilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
January 24th, 2007 3:48pm
Thanks Navin,
I tried all my tricks but nothing was working till this.
Free Windows Admin Tool Kit Click here and download it now
January 30th, 2007 8:59pm
Try this..dismount the public store, rename the old public store db folder, remount (it will recreate the public folder db) use adsiedit tool to navigate to the Configuration/Services/Microsoft Exchange/<your organization container>/ Find the 2nd storage container that contains the public folder object and delete it. This allowed me get past the uninstall check tools, because there was no pf db to be found. The problem looks like MS doesn't display the folder replicas too easily. Exchange 2007 is more of a downgrade for experienced exchange admins rather than an upgrade!
February 11th, 2007 11:17pm
ziki -
What was your resolutions to this issue, where you able to remove EXH2007? or did you do something else?let me know, I'm still stock with the folder replication issue, I also noticed when trying to run all four commands suggested to you, I was prompt to type a "Identity" right after the command.
Please help
Thanks,
Sam Taveras
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2007 12:31am
Navin Tah wrote:
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorAction:SilentlyContinue
Get-PublicFolder -Serverxxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Serverxxxxx -Recurse -ErrorAction:SilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
Thanks for the suggestion - I tried this command - replied A to say yes to all questions for both - looked like it was doing something but when I went back to the exchange MMC, and tried to remove the public folder it says the same thing - the public folder specified contains replicas... funny thing is I never specified anything about replicating.
Exchange 2007 has some cool new features but why is it so kludgy? No more real integration with AD computers and users, and why the heck do we have to runs scripts do do everything - did MS think typing is easier than a GUI? Why not have a purely DOS based exchange server? And last - I can't find squat in the new MMC - I knew where everything was in 2000 and 2003 - can't find so many simple things like the protocol status (e.g. IMAP) I don't see a quick listing of what size peoples mailboxes are...
February 26th, 2007 2:40am
Thanks - I did that and it did allow me to finally release my public folders - not sure what the hell is wrong with MS - Exchange 2007 seems pretty poorly cobbled together. Why did they put so much effort into MS BOB or Clippy and so little work intoVista, Zune, Office 2007, Exchange2007...
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2007 4:42am
Hello All-
I had Exchange 2007 running on two servers and I deleted these servers. Then I reinstalled and installed Exchange 2003(2007 was a MAJOR pain in the you know what). Then I saw the old Administrative Groups from the Exchange 2007 instance. So I used adsiedit.msc and removed them and thought everything was okay. Now when I use Exchange Tasks on a user's account and enable the mailbox it says it works but if I go into Exchange System Manager - no mailbox! I am so confused and don't know what to do next.
Thanks,
locoytravieso
March 1st, 2007 8:01am
Extreme Thanks for this post.!!!
I installed to quick thinking it was just another version of Exchnage and I would figure it out along the way,
Needed and Edge Transport from the start! Had to uninstall after mailboxs and databases. Huge mess and then I could not uninstall!
This post allowed me to move on!
Thanks again!
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2007 8:34pm
Beleive me !
The best way to uninstall Exchange 2007 with Public folder replication problems, is to follow instruction from this guy Ben Winzenz - MSFT.
The below post of Ben, help me to solve all immediatelly.
Giuseppe
March 13th, 2007 10:09pm
Try uninstall Exchange 2007 from a DOS command C:\Program Files\Microsoft\Exchange Server\bin\setup.com /mode:uninstall works for me. But if you have an another Exchange 2007 server try this link: http://technet.microsoft.com/en-us/library/aa998329.aspx.
Free Windows Admin Tool Kit Click here and download it now
April 12th, 2007 6:09am
After loosing most of my hair having the same problems as you guys the ADSIedit util saved my life. I removed the references to first and second storage groups, and voila, the add/remove let me take out exchange.
Perhaps somebody at MS could make this a little more difficult to do. After all, I only lost 9 hours of my life trying to uninstall exchange!
April 19th, 2007 5:44pm
Even in a single exchange 2007 server i could not uninstall before i found this. i would have hoped there was an easier way to do this. But it did work for me.D
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2007 1:19pm
Thank you!!!!!!!!
April 25th, 2007 11:30pm
i agree completely!!!
with adsiedit you manage to uninstall exchnage 2007
it's unbelievable!!
thank you Ben
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2007 7:06pm
This worked for me... Thanks!
May 28th, 2007 12:30pm
Wow, thanks for this.
I've spent hours trying to get round the public folder replication issuses!
What a complete pile of junk Exchange 2007 is. The exchange development team have discovered CLI. Terrific, as an administrator they've made my job even harder. Hey Microsoft as someone who has to develop and maintain numerous platforms I don't want to have to learn a new version of mandarin to control my exchange server. Remember the concept of an effective UI? Isn't that what Microsoft's philosophy is all about?
Exchange 2007 is clearly aimed at large scale organisations who are able to employ back room geeks who can spend their entire time learning a new CLI language. For small-medium organisations it's a complete waste of time
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2007 6:34pm
The advice from Ben was perfect. Resolved my issue quickly and allowed me to complete the uninstall of Exchange 2007. This being my first Exchange rollout, I was hoping for something a bit more intuitive. Kinda wishing I had a license for 2003.
May 29th, 2007 10:52pm
Couldn't have said it better myself. This version of exchange is intended for newbies. Its like Vista where you can't find anything.
Free Windows Admin Tool Kit Click here and download it now
May 31st, 2007 9:13pm
you rock that just saved my ***. Thanks Man great advice Ben's Information is right on
May 31st, 2007 11:40pm
That woks perfectly with ADSEDIT, I mean as perfectly as uninstalling Exch by ADSEDIT is concerned. no comments !
Thaks for the tip!
Free Windows Admin Tool Kit Click here and download it now
June 4th, 2007 7:04pm
I just wanted to post a thank you to you Ben. I have tried for several days, different methods to remove the replication from the Public Folder store, all with no luck as I have no other server to move the replications. Your post above allowed me to uninstall Exchange 2007. Not that I wanted to, but after a lack of reading, we were not prepared to learn that a migration to Exchange 2007 now REQUIRES two servers.
Aloha to you Ben.
June 5th, 2007 7:49pm
To solve the uninstall issue, the really way is from Ben's. thanks to Ben.
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2007 6:02pm
Hiii Ben,
You are simply great. This solution worked. I tryied lot through commands to remove the public folders but failed. but Adsiedit is simply great solution.
Thanks a lot.
June 22nd, 2007 9:53am
How can i get the ADSIedit tool on exchange 2007?
Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2007 6:05pm
I got ADSIedit to work...now how do i get this fixed?
Summary: 3 item(s). 2 succeeded, 1 failed. Elapsed time: 00:00:16
Hub Transport Role PrerequisitesFailed
Error:This computer is configured as a bridgehead server for 1 routing group connector(s) in the organization. These must be moved or deleted before Setup can continue.
Elapsed Time: 00:00:04
Ok, nevermind, i got it fixed thanks!
June 22nd, 2007 6:19pm
You guys think you have problems.
Try unintalling Exchange 2007 when the server has died with no backup.
MS says the only supported method is with Add/Remove programs or by re-running the setup cd.
Haha, what about in a DR situation?
Actual problem is that msx2k7sp1b on Longhorn latest April Betais so dodgy it failed install and wont now uninstal, just craps out all the time.
Wish me luck, Im going in with ADSI edit and into the Services node in "Sites and Services"
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2007 2:05pm
Hey everyone,
Does anyone know how to resolve this error?
Hub Transport RoleFailed
Error:Could not find the default Routing Group 'Exchange Routing Group (DWBGZMFD01QNBJR)'.
Elapsed Time: 00:00:12
June 25th, 2007 7:11pm
just when i was about to give up hope you've helped us... thanks Navin!the first command didn't solve it for me, it was the second line. seems its a common problem, glad someone knew how to fix it. Thanks!
Free Windows Admin Tool Kit Click here and download it now
June 28th, 2007 6:58am
Try to browse the "First Administrative Group" which contain the Exhchange 2000 - 2003 Server.
You will see the connector from Connectors. Delete it manually then you can uninstall the Hub Transport Role!!
July 30th, 2007 10:31pm
Hello there..
Could you please state the HTTP link of the document you're talking about?
Thanks...
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2007 12:00pm
Follwed Ben Winzenz instructions and uninstall worked flawlessly.
Thnk you!
October 10th, 2007 7:36pm
Follwed Ben Winzenz instructions and uninstall worked flawlessly.
Thank you!
Free Windows Admin Tool Kit Click here and download it now
October 10th, 2007 7:36pm
This worked perfectly. Somehow during my installation something went horribly wrong while reading from the disc and I couldnt get the server to boot correctly. This allowed me to remove Exchange 2007 seeing as I had no replica's. Thanks.
October 12th, 2007 7:56am
I followed the posts containing the cmdlet to remove the public folder subtree and etc, however that was not necessary. Under exchange management console, all you have to do is go to your mailbox database, right click and hit properties, and repoint it to your other server (exchange 2003) for its public folder database and you're all set to uninstall. So many complex things for such a simple task.
Don't forget to repoint your exchange 2003 public folder database to itself now as well if your exchange 2007 was a primary holder for the public folder database.
If you then run into the public folder problem of not being able to delete the public folder database due to replicas, you need to remove it using adsi edit under your first organization, exchange administrative group, servers, information store, public folder key, and under the folder heirarchy key.
Free Windows Admin Tool Kit Click here and download it now
October 16th, 2007 8:15pm
I followed the posts containing the cmdlet to remove the public folder subtree and etc, however that was not necessary. Under exchange management console, all you have to do is go to your mailbox database, right click and hit properties, and repoint it to your other server (exchange 2003) for its public folder database and you're all set to uninstall. So many complex things for such a simple task.
Don't forget to repoint your exchange 2003 public folder database to itself now as well if your exchange 2007 was a primary holder for the public folder database.
If you then run into the public folder problem of not being able to delete the public folder database due to replicas, you need to remove it using adsi edit under your first organization, exchange administrative group, servers, information store, public folder key, and under the folder heirarchy key.
October 16th, 2007 8:15pm
Navin Tah wrote:
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorActionilentlyContinue
Get-PublicFolder -Serverxxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Serverxxxxx -Recurse -ErrorActionilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
I had the same issues with removing replicas from a clean install of Exchange Server 2007 SP1 Beta 2 with no prior attachments to any other servers. Though I did not try Ben's suggestion, Navin's worked. Thanks!
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2007 7:05am
Navin Tah wrote:
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx -Recurse -ErrorAction: SilentlyContinue
Get-PublicFolder -Serverxxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Serverxxxxx -Recurse -ErrorAction: SilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
Worked for me too. Failed at first because I wasmissing the last bit with the silentlycontinue part. Did not try Ben's option as I was having replication issues. Here's my question, my environmentconsisted ofoneExch 2007 server so what was it replicating too? As I understand replicas (and not having read anything about the way Exch does it) its a copy of whatever it is your dealing with. A copy of NDS in Novell, a copy of ADS in Windows so why or howdid the Exch server make replicas if it was the first and only exch server on the network?
Thanks for the info
Note: had to put a space between the colon and S in silentlyrun to display properly. Delete space if you are copy,pasting.
November 9th, 2007 7:39pm
the bellow link will help
http://telnetport25.wordpress.com/2007/08/21/quick-tip-removing-exchange-2007-error-with-public-folder-replicas/
Free Windows Admin Tool Kit Click here and download it now
January 29th, 2008 5:33am
I can't tell you how grateful I am for this post...I have spent the last 4 days trying to uninstall Exchange 2007 from my organisation purely because i need to get it off the Windows Server 2008 Virtual Machine I have and onto a Windows Server 2003 x64 Virtual Machine.Why? you ask - because Microsoft thought it would be a good idea to include a backup utility in Server 2008 (Windows Server Backup) that is not Exchange Aware > and that removing the remote streaming API would be a good idea forcing people to buy either DPM 2007 or a 3rd party backup solution.It has been a great learning opportunity and Exchange 2007 definitely has some great new features (like the Edge Transport role, and the "modular" roles concept itself) but they have complicated the management console a bit too much.I finally used ADSI Edit as suggested by Ben Winzenz and i could remove the mailbox role.I just dont like having to "rip" the pf database out like that, but hey - it worked!Thank You
May 15th, 2008 9:43pm
Ben your a legend. I even registered just to say thanks and what a crock of(insert bad word!)Exchange 2007 is. If Exchange 2000 wasn't bad enough, this seems to have taken it to a whole new level of ***!
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2008 1:57pm
Thanks For that. this post worked fine to me. ANdy.
January 18th, 2009 4:55am
Thank you very much Ben, i was able to take it out after removing the storage group and mailbox store that contained the public folder using adsiedit.
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2009 3:53am
Speeddensity,
Have you tried using the recoverserver mode of Exchange? Basically in a situation where the server is lost you can reformat the machine, give it the same name and then run Setup.com /m:recoverserver. That will install Exchange on the machine using the settings of the previous installation stored in AD. After you do this you can perform a clear uninstall of the server.
January 30th, 2009 12:36am
Speeddensity,
Have you tried using the recoverserver mode of Exchange? Basically in a situation where the server is lost you can reformat the machine, give it the same name and then run Setup.com /m:recoverserver. That will install Exchange on the machine using the settings of the previous installation stored in AD. After you do this you can perform a clear uninstall of the server.
Free Windows Admin Tool Kit Click here and download it now
January 30th, 2009 12:36am
Thanks Ben it worked for me.
September 11th, 2009 7:51pm
this is the solution, thanks Ben
Free Windows Admin Tool Kit Click here and download it now
September 11th, 2009 7:51pm
Navin, I Love You :) Sorry for the useless comment. Thanks for your help - still useful almost 3 years later.
October 24th, 2009 9:49pm
Hallo zusammen,
hatte das gleiche Problem. Bekam die Öffentlichen Ordner Replikate nicht weg. Skripte oder ähnliches hat alles nicht funktioniert, außer mit ADSIEDIT.
Danke an alle / Thanks for all
Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2010 2:39pm
I can confirm right now that ADSIEdit.msc worked where nothing else did. We are now completely migrated to Exchange 2010 and off of 2007. Highly recommend using ADSIEdit for anyone else with trouble removing Public Folder Databases due to replication problems.
February 11th, 2011 4:22pm
Can you ensure that you no longer have any data on Exchange 2007.
Free Windows Admin Tool Kit Click here and download it now
February 11th, 2011 8:00pm
From ADSIEDIT >>>>Configuration, Configuration, Services, Microsoft Exchange, First Organization, Administrative Grups, Exchange Administrative Group, Servers, Servername, Information Store, First Storage Group
It was worked on my test enviornment.Arun Khatri
April 17th, 2011 9:40am
Open Exchange 2007 management shell (CMD line) and type following commands:
Get-PublicFolder -server xxxxx "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -server xxxxx
-Recurse -ErrorAction:SilentlyContinue
Get-PublicFolder -Server xxxxx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder
-Server xxxxx -Recurse -ErrorAction:SilentlyContinue
Replace xxxxx with your Exchange server name in the above command.
Please, please, do NOT use this command. Customers keep calling in with their public folders wiped out, because they do not understand that Remove-PublicFolder deletes the folder out of the hierarchy. This is just like going into Outlook, highlighting the folder,
and choosing Delete. If you do not quickly dismount the database or shut off transport, that change will replicate to your other public folder stores and wipe out all the public folders. Even if you do quickly dismount, the directory objects for the folders
will be deleted, breaking email to any mail-enabled public folders.
This command line iterates through the whole hierarchy and deletes every folder. You should only do this when you are removing the very last public store in the org.
Otherwise, just use Ben's workaround (delete using ADSI Edit) if you don't want to solve the replication problem that is preventing the replicas from going away.
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2011 12:51am
Thanks for the information Bill, really appreciate.
Anyways i never use that command, rather than using that command i prefer using adsiedit
Cheers, Gulab | MCITP: Exchange 2010-2007 | Skype: Gulab.Mallah | Blog: www.ExchangeRanger.Blogspot.com
June 14th, 2011 9:15am