[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How can I remove public folder replica for a folder and sub folders not a top folder?

Posted on 2011-05-03
Medium Priority
Last Modified: 2012-05-11
I mgrated fro Exchange 2003 Servers to Exchange 2007 Servers. I am required to remove replication form 100 sub folders with 1000s of subfolders, I cant just move all replicas or top folders, I have to do the top folders last . PS only removes top folders and pfDavAdmin only removes replica's from a single folder and you manually have to remove replicas from all the sub folders. Any suggestions how to remove more replicas from PF folders in less time. Note: they are not top folders.?.
Question by:355LT1
1 Comment

Accepted Solution

HeshamMousa earned 2000 total points
ID: 35643276
If Public Folders are hosted on more than one server, use the MoveAllReplicas.ps1 script to remove replicas from a server, as illustrated in KB 927464: How to remove Exchange 2007 from a computer.

The MoveAllReplicas.ps1 script resides in the \Scripts folder in the path where Exchange Server 2007 is installed. It’s an easy-to-use script that takes 2 parameters — the source and target server names. The source server is the server you’re trying to remove the Public Folder replicas from. The target server can be any other server in the Organization that hosts Public Folders — presumably a server that’s in the same location (AD Site) to avoid replicating PFs over WAN links.

MoveAllReplicas.ps1 -Server “SOURCE SERVER NAME” –NewServer “TARGET SERVER NAME”
Once this is done, it may take some time for Public Folders to replicate to the target server, and for these to be removed from the source server. To verify there are no replicas on the source server, you can use the Get-PublicFolderStatistics command.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
In this video we show how to create an email address policy 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 Mail Flow…
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…
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 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