Microsoft Reduce Customer Effort Center

Our team drives product feedback based on solid data, it drives proactive issue prevention and ultimately, drives improvements around products based on customer feedback.

Public Folder Replicas Prevent Uninstall Exchange 2007

Public Folder Replicas Prevent Uninstall Exchange 2007

  • Comments 36
  • Likes
When you try to uninstall Exchange 2007 from your server, you may receive some error messages which indicate that there is still some Public Folder on the machine thus meaning the uninstall process fails. We have received a lot of these issues recently. It is caused by the Exchange 2007 server containing some public folder replicas. We should remove the replicas as well as the public folder store before we can uninstall Exchange 2007 properly.

For the detailed steps to remove public folder replicas and the public folder store, please refer to the following article.

How to remove Exchange 2007 from a computer;EN-US;927464


  • The KB only says how to move replicas to another server.

    Not remove them completely if you are permanently removing exchange.

  • Yep, this article only moves the replicas.

    Is there no way you can uninstall exchange??????

  • Your help sucks. I really need to remove exchange permantently.

  • 1.  Please keep at least one administrator mail box to remove public folder first!

    2.  From Exchange 2007 shell command

    run following 3 commands:

    Get-PublicFolder -Server <your server name>  "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server ex2007 -Recurse -ErrorAction:SilentlyContinue

    Get-PublicFolder -Server <your server name>  "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server EX2007 -Recurse -ErrorAction:SilentlyContinue

    Disable-Mailbox  all mail box in last Exchange 2007

    3. Remove your Exchange 2007 from add/remove

  • Wang you help workt just GREAT!!!

    there where only 2 typo's

    Get-PublicFolder -Server <your server name>  "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <your server name>  -Recurse -ErrorAction:SilentlyContinue

    Get-PublicFolder -Server <your server name>  "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <your server name>  -Recurse -ErrorAction:SilentlyContinue

    if you replace <your server name>  with the name of your server all works fine (need to replace it 4 times)

  • Thanks, Wang and Eric

    Your help did work (I used the corrected scripts that Eric published)

  • So gret job, many thanks Wang, uninstalling was a really pain in my ass, with your command it's as easy as unintsalling office .

  • These commands finaly makes it happen to remove exchange 2007! Thanks! Just what I was looking for for a long time.

  • I tried the commands, with the chnages that Eric made, and I am still unable to get this off of my server. I am ready to nuke the server completely and start from scratch.

  • Wang you rock you are the bomb final some one that knows his stuff

  • Wang o de tango! You are my Hero too - I completely destroyed one system and had to re-install from bare metal before I found this thread. The second un-install went smooth as Silk thanks to these commands!

    Thanks a BUNCH!

  • Thanks Wang. you are a life saver

  • Thanks Wang. I had wasted some days to remove exchange  2007.

  • Thanks Wang, I too have been trying to get Exchange 2007 off my server. Microsoft assumes that you will never need to completly get this thing completly off your server, I guess. Your trick worked perfectly.

  • Do these steps only remove the Replicas on that one Public Folder server, or do these steps remove the folders from ALL Public Folder servers?

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment