• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9165
  • Last Modified:

step by step details of moving public folder from one exchange2010 server to another 2010 server

Recently we moved the mail box role from our existing exchange 2010 SP3, to another new exchange 2010 SP3. Now I need to move the public folder from the old one to the new one. Can someone detail me with step by step?
1
Zacharia Kurian
Asked:
Zacharia Kurian
  • 7
  • 4
1 Solution
 
netmaster1355Commented:
it is not step by step by maybe useful for your desired result.
http://technet.microsoft.com/en-us/library/bb331970%28v=exchg.141%29.aspx

Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-07-23

You can use scripts to move public folders to a different database or server.

Looking for other management tasks related to public folder databases? Check out Managing Public Folder Databases.
Use the MoveAllReplicas.ps1 script to move all public folder content from one server to another server

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Public folders" entry in the Mailbox Permissions topic.

To move all public folders in a public folder database on one server to a public folder database on another server, use the MoveAllReplicas.ps1 script. This script replaces a server with a new server in the replication list for all public folders, including system folders. For more information about using public folder scripts, see Scripts for Managing Public Folders in the Exchange Management Shell.

This example moves all public folder content from Server01 to Server02.

.\MoveAllReplicas.ps1 -Server Server01 -NewServer Server02

Use the ReplaceReplicaOnPFRecursive.ps1 script to move replicas in a public folder subtree to another server

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Public folders" entry in the Mailbox Permissions topic.

To move all the replicas of a public folder subtree from one server to another server, use the ReplaceReplicaOnPFRecursive.ps1 script. This script adds a new server to the replication list for a public folder and all the folders within that hierarchy. If the server is already listed in the replication list for a folder, nothing is changed for that folder. For more information about using public folder scripts, see Scripts for Managing Public Folders in the Exchange Management Shell.

This example moves the public folder replica Legal and all the folders within that hierarchy from Server01 to Server02.

.\ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder "\Legal" -ServerToAdd Server02 -ServerToRemove Server01

 When to use the scripts


If you're removing the server then you would use the MoveAllReplicas.ps1 script.  That moves the Public and System folders to the new server and removes the old server as a replica.  For example, if you're migrating from 2003 to 2010, then you would run this script when you're ready to remove 2003.  Run this command from 2010 EMS -
C:\Program Files\Microsoft\Exchange Server\v14\Scripts\MoveAllReplicas.ps1 -Server <2003 Server> -NewServer <2010 Server>
To verify this worked, use Exchange 2003 ESM and look under the public folder store\Public Folder Instances.  This will show you what has not been moved yet (could take hours/days).  Once this is empty, you can move to the next steps of removing that server.
As for the AddReplicaToPFRecursive.ps1 script, this script is used if you are adding another PF database to the environment and you want to replicate all PF data from the existing server to the new server so that you have a redundant copy.  An example of this would be when you only have one 2010 server hosting a public folder database and you add a second 2010 server with a public folder database.  You'd run this command from 2010 EMS -
C:\Program Files\Microsoft\Exchange Server\v14\Scripts\AddReplicaToPFRecursive.ps1 -Server <Existing 2010 Server> -TopPublicFolder "\" -ServerToAdd <New 2010 Server>  
The end result would be two Exchange 2010 servers with the same PF data replicating between them.
0
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
Well, I had read all these so called stuff but nothing helped me much. Let me explain what I have done;

1. Created a new PF on the new server.
2. Executed .\MoveAllReplicas.ps1 -Server Server01 -NewServer Server02, from the old server's EMS.

Waited for a quite along time and checked if the replication was done or not by using;

Get-PublicFolderDatabase

Get-PublicFolderStatistics -Server

But still nothing is been replicated to the new server's PF.

Has some one did the same scenario?
1
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Let me ask you few things .... after you ran the .\MoveAllReplicas.ps1 did you check if the new server was in the replication tab ?

Is Mail flow working between both servers ? as if not PF replication wont work at all
Is the Hierarchy replicated ?
What is the replication interval ?
What is the PF database size on old and on the new server ?

- Rancy
1
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
Please find the answers below in order;

yes the new server was in the replication tab (but the old server wasn't there. is it normal?) Please find the attached.

The mail flow is working fine (last night moved all the mailbox to the new one and removed those soft deleted Mailboxes from the old server).

Yes, I did it manually from the PF Management Console.

replication is set always run.

the total PF  size is 260 MB only on both servers.
screen-shot.jpg
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
I would suggest always AddPFreplica and once confirmed RemovePFReplica ..... keeps both servers inline and once moved you can remove the old PF .... Move is more like a push from Old->New

So you say the PF size is same on Old and New ? If so isnt the data on New if not run the Add let it add and then replicate

- Rancy
0
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
bit confused; could you please just detail with the appropriate scrip?

the old server name is srv1 and the new server name is srv2. lets say, running command from srv1 as;

AddReplicaToPFRecursive.ps1 –Server srv1 –TopPublicFolder “” -ServerToAdd srv2.

But I believe using .\MoveAllReplicas.ps1, should do the job. Is it?

awaiting for your feed backs...
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Move all replica is a double process where it adds new server pushes for replication and removes the old server .... what your saying is what i have heard so always go safer way even if it takes me sometime

- Rancy
0
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
tried most of the work around but still the nothing updated on the new mail box server!

Can some one throw me a light?
0
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
finally I got worked. Enabled logging for the PF replication and found that the old ex2003 server container was still active. Used adsi edit and removed the legacy ex2003 container.

We had the existing ex2010, migrated from old ex2003.
1
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
Expert Admins,

Please close this question and refund the points, since I have found the solution by myself.

Thank you.
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
You can yourself close the post and mark your answer as Solution or Delete as well

- Rancy
0
 
Zacharia KurianAdministrator- Data Center & NetworkAuthor Commented:
Enabled logging for the PF replication and found that the old ex2003 server container was still active. Used adsi edit and removed the legacy ex2003 container.
1

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now