Click to Rate and Give Feedback
TechNet
TechNet Library
Exchange Server
Operations
 How to Move Public Folder Content f...
Collapse All/Expand All Collapse All
How to Move Public Folder Content from one Public Folder Database to Another Public Folder Database

Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007

Topic Last Modified: 2008-01-21

This topic explains how to use the Exchange Management Shell to move public folders to a different database or server.

Bb331970.note(en-us,EXCHG.80).gifNote:
You cannot use the Exchange Management Console to perform this procedure.
Bb331970.note(en-us,EXCHG.80).gifNote:
If you are performing this procedure as part of a migration from Exchange Server 2003 to Exchange Server 2007, you can use either Exchange System Manager in Exchange 2003 or the Exchange Management Console in Exchange 2007 to move Exchange 2003 public folders to an Exchange 2007 server. For more information about migrating public folders, see the Microsoft Exchange Team blog article, Moving Public Folder Replicas from Exchange 2000 to Exchange 2007. For more information about removing public folder databases, see Removing Public Folder Databases.

When moving public folders, there are two scenarios to consider:

  • Move all public folder content in a database to a new public folder database   To move all public folders in a public folder database to a new public folder database, 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.
  • Move content in a tree of folders from one server to another   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 that are beneath it in the 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.

To perform the following procedures, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

  • To move all public folder content from Server01 to Server02, run the following command:

    MoveAllReplicas.ps1 -Server Server01 -NewServer Server02
  • To move the public folder called Legal and all of the folders within that hierarchy from Server01 to Server02, run the following command:

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

For detailed syntax and parameter information, see the Set-PublicFolder reference topic.

For more information about public folders, see the following topics:

Community Content   What is Community Content?
Add new content RSS  Annotations
goes to scripts folder and run      Jun Zhou   |   Edit   |   Show History
it need to be run under c:\program files\Microsoft\Microsoft Exchange\Scripts with .\MoveAllReplicas.ps1
It will move on background
At first some minutes, public folder will be un-accessable, and later it will resume.
Tags What's this?: Add a tag
Flag as ContentBug
Same or worse going from 2007 to 2010      majorburn   |   Edit   |   Show History
I have the exact same problem as BusinessTG.com. if I run the MoveAllReplicas.ps1 -Server srv002 -NewServer srv003 command I get this instead:

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array7. At c:\program files\microsoft\exchange server\scripts\replaceReplicaOnPFRecursive.ps1:147 char:24 blah blah blah, you get the picture.

I then tried the other recommended command: ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder "\Legal" -ServerToAdd srv003 -ServerToRemove srv002

Nothing happened, no error, no movement, nothing.

I tried restarting srv002, but it still says there are replicas. Just for reference, it is now April 20th, 2010. Please can we have an official answer to why this is not working?
Tags What's this?: Add a tag
Flag as ContentBug
Hi Everyone, I also have the same issue.      BUSINESSTG.COM   |   Edit   |   Show History
I have an Exchange 2007 server that I migrated from Exchange 2003 onto.
The Server OS was running Server 2008 R2, which to my surprise does not completely support Exchange 2007.
Microsoft however has heard a mouthful about this and they will release support.
Consequently, I had to load up another box, put on Server 2008 SP2.
Then I loaded Exchange 2007, moved all mailboxes, etc.

I need to now uninstall Exchange 2007 from 2008 R2 and decommission the R2 Server.
However, I can't seem to remove the final Mailbox role.

I used the following script.
MoveAllReplicas.ps1 -Server MAIL -NewServer MAIL02

However after running this multiple times to my dismay no luck

I used the next command.
Remove-PublicFolderDatabase -Identity "MAIL\Second Storage Group\Public Folders"

I recieve this error.

Remove-PublicFolderDatabase : The public folder database "MAIL\Second Storage G
roup\Public Folders" contains folder replicas. Before deleting the public folde
r database, remove the folders or move the replicas to another public folder da
tabase. For detailed instructions about how to remove a public folder database,
see http://go.microsoft.com/fwlink/?linkid=81409.
At line:1 char:28
+ Remove-PublicFolderDatabase <<<< -Identity "MAIL\Second Storage Group\Public
Folders"
+ CategoryInfo : InvalidOperation: (MAIL\Second Storage Group\Pub
lic Folders:ADObjectId) [Remove-PublicFolderDatabase], InvalidOperationExc
eption
+ FullyQualifiedErrorId : 77089DD3,Microsoft.Exchange.Management.SystemCon
figurationTasks.RemovePublicFolderDatabase

I am frustrated. Can anyone help? Thanks!
Tags What's this?: Add a tag
Flag as ContentBug
Why can't we use the Exchange Management Console?      DrewW NFS   |   Edit   |   Show History
The article says, "You cannot use the Exchange Management Console to perform this procedure." Why is Microsoft forcing us to use the command prompt instead of a GUI? Isn't the ease of use of a GUI the whole reason Windows was so much more poplular than DOS? Heck, the whole company became what it is today because to a GUI, namely, "Windows". I have been full time with Microsoft technologies since 1993, I have been an MCSE since 1995, and I hate, hate, HATE being FORCED to use the command line or power shell. Oh, I certainly like having the command prompt available...I still write batch files all the time. I just hate being forced to use it!
Tags What's this?: gui (x) Add a tag
Flag as ContentBug
We have the exact same Issue!      tk10   |   Edit   |   Show History
We have exactly the same issue as Michael E. McAteer ! Is there any news about this issue?
My result      hvgpostmaster   |   Edit   |   Show History
Create a new public folder on Exch2k7:
New-PublicFolder -Name <name> -Path '\<path>' -Server '<E2k7_name>'
set replication only that server:
Set-PublicFolder "\<path>\<name>" -Replicas '<E2k7_name>\<Public folder store name>'
move all contents to the new folder (with outlook)
(move e-mail addresses, if the PF is mail-enabled)
Remove old PF
rename new PF to old name.
I have the same issue.      tuchobeto   |   Edit   |   Show History
I Need to remove replicas from an XCH 2007. We have two EXCH 2007 server, one is being decomissioned. I need to move all replica so I remove the las role (MailBoxes) from the server.
I applied the Move replicas script but I still have some left over, What do we do next?
Tags What's this?: Add a tag
Flag as ContentBug
Folders are not moved when transitioning to Exchange 2007 from Exchange 2003      Ramyar Jafarkhani ... Thomas Lee   |   Edit   |   Show History

When performing these steps as part of the decommissioning process of Exchange 2003 servers in a new Exchange 2007 environment, the Public folders are never moved, regardless of how long you wait. Additional information is needed on how to proceed if the folders are never moved and what may be the cause of this.

Not all Folders Move Properly      Michael E. McAteer   |   Edit   |   Show History
After following the steps above, I have 3 folder instances stuck after a week. What do we do when this happens?
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker